void (JavaReplaceChoice choice) { Consumer<JavaReplaceChoice> dialogIntroduce = c -> CommandProcessor.getInstance().executeCommand(project, () -> introduce(c), getRefactoringName(), null); if (choice == null) { dialogIntroduce.accept(null); } else { SlowOperations.allowSlowOperations( () -> inplaceIntroduce(project, editor, choice, targetContainer, occurrenceManager, originalType, dialogIntroduce)); } }