code: public static String simpleClassName(Class<?> clazz) {
          String className = checkNotNull(clazz, "clazz").getName();
          final int lastDotIdx = className.lastIndexOf(PACKAGE_SEPARATOR_CHAR);
          if (lastDotIdx > -1) {
              return className.substring(lastDotIdx + 1);
          }
          return className;
      }
docs: Generates a simplified name from a {@link Class}.  Similar to {@link Class#getSimpleName()}, but it works fine
  with anonymous classes.