boolean ignoremethod = true;
Iterator edgeInIt = callGraph.edgesInto(method);
while(edgeInIt.hasNext())
{
Edge edge = (Edge) edgeInIt.next();
if( edge.kind() != Kind.THREAD && thread.containsMethod(edge.src())) // called directly by any of the thread methods?
ignoremethod = false;
}
if(!ignoremethod && !thread.containsMethod(method))
thread.addMethod(method);
}