void () { try (var ignored = SlowOperations.startSection(SlowOperations.ACTION_PERFORM)) { IdeEventQueue.getInstance().setEventCount(myEventCount); // Make DataContext valid again. BaseRefactoringAction.performRefactoringAction(myProject, myDataContext, myHandler); } }