public static @Nullable String getName(@NotNull PsiAnonymousClass cls) {
    final var parentClass = UastContextKt.getUastParentOfType(cls, UClass.class);
    if (parentClass == null) {
      return null;
    }
    var value = parentClass.getUserData(MY_ANONYMOUS_CLASSES_NAMES_PROVIDER_KEY);
    if (value == null) {
      value = CachedValuesManager.getManager(cls.getProject())
        .createParameterizedCachedValue(OUR_ANONYMOUS_CLASS_NAME_PROVIDER, false);
      parentClass.putUserData(MY_ANONYMOUS_CLASSES_NAMES_PROVIDER_KEY, value);
    }
    return value.getValue(parentClass).get(cls);
  }
public static @Nullable String getName(@NotNull PsiAnonymousClass cls)