boolean (@NotNull PsiFile hostFile, @Nullable Editor hostEditor, @NotNull IntentionAction action, @NotNull @NlsContexts.Command String commandName, int problemOffset) { Project project = hostFile.getProject(); ((FeatureUsageTrackerImpl)FeatureUsageTracker.getInstance()).getFixesStats().registerInvocation(); try (AccessToken ignore = SlowOperations.startSection(SlowOperations.ACTION_PERFORM)) { PsiDocumentManager.getInstance(project).commitAllDocuments(); ModCommandAction commandAction = action.asModCommandAction(); if (commandAction != null) { invokeCommandAction(hostFile, hostEditor, commandName, commandAction, problemOffset); } else { Pair<PsiFile, Editor> pair = chooseFileForAction(hostFile, hostEditor, action); if (pair == null) return false; CommandProcessor.getInstance().executeCommand(project, () -> invokeIntention(action, pair.second, pair.first, problemOffset), commandName, null); checkPsiTextConsistency(hostFile); } } return true; }