void (@NotNull Compiler compiler) { if (myCompilers.remove(compiler) != null) { for (List<CompileTask> tasks : Arrays.asList(myBeforeTasks, myAfterTasks)) { tasks.removeIf( task -> task instanceof FileProcessingCompilerAdapterTask && ((FileProcessingCompilerAdapterTask)task).getCompiler() == compiler ); } } }