code: private static String checkName(String name) {
          if (name == null)
              return "null";
  
          int len = name.length();
          if (len == 0)
              return "\"\"";
  
          int cc = '/';
          int cp;
          for (int k = 0; k < len; k += Character.charCount(cp)) {
              cp = name.codePointAt(k);
              if ((cc == '/' && !Character.isJavaIdentifierStart(cp))
                      || (cp != '/' && !Character.isJavaIdentifierPart(cp))) {
                  return "\"" + addEscapes(name) + "\"";
              }
              cc = cp;
          }
  
          return name;
      }
docs: /* If name is a valid binary name, return it; otherwise quote it.