private static @NotNull @Nls String getAnonymousClassName(@Nls String name) {
    return name != null ? JavaPsiBundle.message("java.terms.anonymous.class.base.ref", name)
                        : JavaElementKind.ANONYMOUS_CLASS.subject();
  }
private static @NotNull @Nls String getAnonymousClassName(@Nls String name)