code: public static String simpleTypeName(Class<?> clazz, boolean decapitalize) {
          if (clazz == null) {
              return "null";
          }
  
          String className = clazz.getName();
          final int lastDotIdx = className.lastIndexOf('.');
          if (lastDotIdx >= 0) {
              className = className.substring(lastDotIdx + 1);
          }
  
          if (!decapitalize) {
              return className;
          }
  
          final StringBuilder buf = new StringBuilder(className.length());
          boolean lowercase = true;
          for (int i = 0; i < className.length(); i++) {
              final char c1 = className.charAt(i);
              final char c2;
              if (lowercase) {
                  c2 = Character.toLowerCase(c1);
                  if (c1 == c2) {
                      lowercase = false;
                  }
              } else {
                  c2 = c1;
              }
              buf.append(c2);
          }
  
          return buf.toString();
      }
docs: Returns the simplified and (optionally) decapitalized name of the specified type.