IdeaPlugin (@NotNull FileContent content) { if (!looksLikeIdeaPluginXml(content)) return null; PsiFile file = content.getPsiFile(); if (!(file instanceof XmlFile)) return null; return DescriptorUtil.getIdeaPlugin((XmlFile)file); }