void () { myFixture.copyFileToProject("pluginActionMultipleDeclarations.xml"); GutterMark gutter = myFixture.findGutter("MyAction.java"); DevKitGutterTargetsChecker.checkGutterTargets(gutter, buildTooltipText("firstDeclaration", "secondDeclaration"), DevKitIcons.Gutter.Plugin, "action"); List<GotoRelatedItem> relatedItems = NavigationUtil.collectRelatedItems(myFixture.findClass("MyAction"), null); assertSize(2, relatedItems); DomGotoRelatedItem first = assertInstanceOf(relatedItems.get(0), DomGotoRelatedItem.class); assertEquals("DevKit", first.getGroup()); assertEquals("firstDeclaration", first.getCustomName()); assertEquals(AllIcons.Actions.AddFile, first.getCustomIcon()); }