void (@NotNull MavenDomPlugin plugin, @NotNull AnnotationHolder holder) { XmlTag xmlTag = plugin.getArtifactId().getXmlTag(); if (xmlTag == null) return; DomElement plugins = plugin.getParent(); if (plugins == null) return; DomElement parent = plugins.getParent(); if (parent instanceof MavenDomPluginManagement) { annotateMavenDomPluginInManagement(plugin, holder); return; } MavenDomPlugin managingPlugin = MavenDomProjectProcessorUtils.searchManagingPlugin(plugin); if (managingPlugin != null) { NavigationGutterIconBuilder<MavenDomPlugin> iconBuilder = NavigationGutterIconBuilder.create(AllIcons.Gutter.OverridingMethod, PluginConverter.INSTANCE); iconBuilder. setTargets(Collections.singletonList(managingPlugin)). setTooltipText(MavenDomBundle.message("overriden.plugin.title")). createGutterIcon(holder, xmlTag); } }