JavaSource.runUserActionTask(org.netbeans.api.java.source.Task<org.netbeans.api.java.source.CompilationController>, boolean)
and waits for its completion.ParserManager.parse(java.util.Collection<org.netbeans.modules.parsing.api.Source>, org.netbeans.modules.parsing.api.UserTask)
and waits for its completion.