List<IntentionAction> (@NotNull Editor editor, @NotNull PsiFile file) { IdeaTestExecutionPolicy current = IdeaTestExecutionPolicy.current(); if (current != null) { current.waitForHighlighting(file.getProject(), editor); } waitForUnresolvedReferencesQuickFixesUnderCaret(file, editor); List<IntentionAction> result = new ArrayList<>(); ApplicationManager.getApplication().invokeAndWait(() -> { IntentionListStep intentionListStep = getIntentionListStep(editor, file); for (Map.Entry<IntentionAction, List<IntentionAction>> entry : intentionListStep.getActionsWithSubActions().entrySet()) { result.add(entry.getKey()); result.addAll(entry.getValue()); } }); return result; }