@Nullable
  private static GlobalSearchScope getResolveScope(DomElement genericDomValue) {
    final IdeaPlugin ideaPlugin = genericDomValue.getParentOfType(IdeaPlugin.class, true);
    assert ideaPlugin != null;

    final Module module = ideaPlugin.getModule();
    if (module == null) return null;

    if (ideaPlugin.hasRealPluginId() || DomUtil.hasXml(ideaPlugin.getName())) {
      return GlobalSearchScopesCore.projectProductionScope(module.getProject());
    }

    return module.getModuleWithDependenciesAndLibrariesScope(false);
  }
@Nullable
  private static GlobalSearchScope getResolveScope(DomElement genericDomValue)