boolean (final XmlFile xmlFile) { final PsiFile file = getContainingFile(); if (!(file instanceof XmlFile)) return false; final IdeaPlugin ideaPlugin = DescriptorUtil.getIdeaPlugin((XmlFile)file); if (ideaPlugin == null) return false; return !ContainerUtil.process(ideaPlugin.getDepends(), dependency -> { final GenericAttributeValue<PathReference> configFileAttribute = dependency.getConfigFile(); if (!DomUtil.hasXml(configFileAttribute)) return true; final PathReference pathReference = configFileAttribute.getValue(); if (pathReference == null) return true; return !xmlFile.equals(pathReference.resolve()); }); }