docs: public static boolean isValidPattern(String pattern) {
      if (pattern == null) {
        return false;
      }
      String canon = pattern.replace('/', '.');
      return ClassName.isQualifiedName(canon)
          || ClassName.isStarQualifiedName(canon);
    }