code: public static String getName(final Class<?> cls, final String valueIfNull) {
          return cls == null ? valueIfNull : cls.getName();
      }
docs: <p>Null-safe version of <code>aClass.getName()</code></p>
  
  @param cls the class for which to get the class name; may be null
  @param valueIfNull the return value if <code>cls</code> is <code>null</code>
  @return the class name or {@code valueIfNull}
  @since 3.7
  @see Class#getName()