docs: public static boolean isLocalOrAnonymous(String className) {
          int i = className.lastIndexOf('$');
          if (i >= 0 && i + 1 < className.length()) {
              return Character.isDigit(className.charAt(i + 1));
          }
          return false;
      }