List<CompileTask> () { List<CompileTask> result = new ArrayList<>(); //noinspection CollectionAddAllCanBeReplacedWithConstructor result.addAll(myAfterTasks); //noinspection deprecation for (Compiler extCompiler : Compiler.EP_NAME.getExtensions(myProject)) { if (extCompiler instanceof Validator) { FileProcessingCompilerAdapterTask task = new FileProcessingCompilerAdapterTask((Validator)extCompiler); result.add(task); } } for (InspectionValidator validator : InspectionValidator.EP_NAME.getExtensions(myProject)) { FileProcessingCompilerAdapterTask task = new FileProcessingCompilerAdapterTask(InspectionValidatorWrapper.create(myProject, validator)); result.add(task); } collectExtensionTasks(CompileTaskBean.CompileTaskExecutionPhase.AFTER, result); return result; }