static @NotNull ScopedClassHierarchy getHierarchy(final @NotNull PsiClass psiClass, final @NotNull GlobalSearchScope resolveScope) {
    if (psiClass instanceof PsiAnonymousClass) {
      return new ScopedClassHierarchy(psiClass, resolveScope);
    }
    return CachedValuesManager.getCachedValue(psiClass, () -> {
      Map<GlobalSearchScope, ScopedClassHierarchy> result = ConcurrentFactoryMap.createMap(resolveScope1 -> new ScopedClassHierarchy(psiClass, resolveScope1));
      return CachedValueProvider.Result.create(result, PsiModificationTracker.MODIFICATION_COUNT);
    }).get(resolveScope);
  }
static @NotNull ScopedClassHierarchy getHierarchy(final @NotNull PsiClass psiClass, final @NotNull GlobalSearchScope resolveScope)