private void collectExtensionTasks(@NotNull CompileTaskBean.CompileTaskExecutionPhase phase, @NotNull List<CompileTask> to) {
    ((ExtensionPointImpl<CompileTaskBean>)COMPILER_TASK_EP.getPoint(myProject))
      .processWithPluginDescriptor((extension, pluginDescriptor) -> {
        if (extension.executionPhase == phase) {
          to.add(extension.getInstance(myProject, pluginDescriptor));
        }
        return Unit.INSTANCE;
      });
  }
private void collectExtensionTasks(@NotNull CompileTaskBean.CompileTaskExecutionPhase phase, @NotNull List<CompileTask> to)