List<CompileTask> () { List<CompileTask> result = new ArrayList<>(); //noinspection CollectionAddAllCanBeReplacedWithConstructor result.addAll(myBeforeTasks); //noinspection deprecation for (Compiler compiler : Compiler.EP_NAME.getExtensions(myProject)) { if (compiler instanceof SourceInstrumentingCompiler) { FileProcessingCompilerAdapterTask task = new FileProcessingCompilerAdapterTask((SourceInstrumentingCompiler)compiler); result.add(task); } } collectExtensionTasks(CompileTaskBean.CompileTaskExecutionPhase.BEFORE, result); return result; }