Finding dependencies of a class

It looks like using a recursive PSI visitor on a Java file and
resolve()ing all of its references takes a long time. Is there some
faster way to find all of the runtime dependencies of a java file? This
includes not only direct references to classes, but also for example
java.lang.String in the statement char[] x = new
StringBuffer().toString().toCharArray().

Please sign in to leave a comment.