public static void forAllExecutors(@NotNull Consumer<? super Executor> executorProcessor) {
    for (Executor executor : Executor.EXECUTOR_EXTENSION_NAME.getExtensionList()) {
      if (executor instanceof ExecutorGroup) {
        for (Executor childExecutor : ((ExecutorGroup<?>)executor).childExecutors()) {
          executorProcessor.accept(childExecutor);
        }
      }
      else {
        executorProcessor.accept(executor);
      }
    }
  }
public static void forAllExecutors(@NotNull Consumer<? super Executor> executorProcessor)