public static void extractMethod(@NotNull Project project, @NotNull ExtractMethodProcessor processor) {
    CommandProcessor.getInstance().executeCommand(project,
                                                  () -> PostprocessReformattingAspect.getInstance(project).postponeFormattingInside(
                                                    () -> doRefactoring(project, processor)), getRefactoringName(), null);
  }
public static void extractMethod(@NotNull Project project, @NotNull ExtractMethodProcessor processor)