public void configureOutputFiles(final com.intellij.openapi.project.Project project, final VirtualFile[] selectedSourceFiles) {
//final com.intellij.openapi.project.Project project = IdeaUtilImpl.getProject(dataContext);
_outputFiles = asPathList(selectedSourceFiles);
RecurseClassCollector classCollector = null;
for (final VirtualFile file : selectedSourceFiles) {
if (IdeaUtilImpl.isValidFileType(file.getFileType())) {
classCollector = new RecurseClassCollector(this, project);
//classCollector.setVirtualFile(file);
classCollector.addContainingClasses(file);
}
}
// clear for gc
if (classCollector != null) {
classCollector.getResult().clear();
}
}