}
final FileObject[] fo2open = new FileObject[]{testFile};
final long[] line = new long[]{-1};
JavaSource javaSource = JavaSource.forFileObject(fo2open[0]);
if (javaSource == null) {
return false;
}
cancelToken.checkCanceled();
try {
javaSource.runUserActionTask(new Task<CompilationController>() {
@Override
public void run(CompilationController compilationController) throws Exception {
compilationController.toPhase(JavaSource.Phase.ELEMENTS_RESOLVED);
Trees trees = compilationController.getTrees();
CompilationUnitTree compilationUnitTree = compilationController.getCompilationUnit();