public static boolean isPluginXml(@Nullable PsiFile file) {
    if (!(file instanceof XmlFile)) return false;
    return getIdeaPluginFileElement((XmlFile)file) != null;
  }
public static boolean isPluginXml(@Nullable PsiFile file)