void () { myFixture.configureByText(JavaFileType.INSTANCE, "public class Foo {\n" + " public static void <caret>main(String[] args) { someCode(); }" + "}"); assertSize(1, myFixture.findGuttersAtCaret()); ShowIntentionsPass.IntentionsInfo intentions = ShowIntentionsPass.getActionsToShow(getEditor(), getFile()); List<AnAction> descriptors = intentions.guttersToShow; Set<String> names = descriptors.stream().map(o -> o.getTemplatePresentation().getText()).collect(Collectors.toSet()); assertEquals(descriptors.size(), names.size()); }