code: public static boolean isForName(@Nonnull String value) {
          if (value.equals(""))
              return false;
          for (int i = 0, len = value.length(); i < len; i++) {
              char c = value.charAt(i);
              if (c != '.' && !Character.isJavaIdentifierPart(c))
                  return false;
          }
          return true;
      }
docs: Returns true if the String looks like a Java type name.
  @param value The name to inspect.
  @return true if the String looks like a Java type name.