final FindBugsPreferences preferences = getPluginInterface(project).getPreferences();
if (Boolean.valueOf(preferences.getProperty(FindBugsPreferences.TOOLWINDOW_TO_FRONT))) {
IdeaUtilImpl.activateToolWindow(getPluginInterface(project).getInternalToolWindowId(), _dataContext);
}
final FindBugsWorker worker = new FindBugsWorker(project, module);
/*final FindBugsProject findBugsProject = new FindBugsProject();
final com.intellij.openapi.project.Project project = IdeaUtilImpl.getProject(_dataContext);
findBugsProject.setProjectName(project.getName());
final Reporter bugReporter = new Reporter(project);
bugReporter.setPriorityThreshold(userPrefs.getUserDetectorThreshold());*/
// set aux classpath
final VirtualFile[] files = IdeaUtilImpl.getProjectClasspath(_dataContext);
worker.configureAuxClasspathEntries(files);
// set source dirs
//final VirtualFile[] selectedSourceFiles = IdeaUtilImpl.getSelectedFiles(_dataContext);
final VirtualFile[] selectedSourceFiles = IdeaUtilImpl.getVirtualFiles(_dataContext);
worker.configureSourceDirectories(selectedSourceFiles);
// set class files
worker.configureOutputFiles(selectedSourceFiles);
worker.work("Running FindBugs analysis for editor files...");
// Create IFindBugsEngine
/*final FindBugs2 engine = new FindBugs2();
engine.setNoClassOk(true);
engine.setBugReporter(bugReporter);