code: @Nonnull
    @Nonempty
    public static String getSafeClassName (@Nullable final Object aObject)
    {
      if (aObject instanceof Class <?>)
        return ((Class <?>) aObject).getName ();
      if (aObject != null)
        return aObject.getClass ().getName ();
      return "null";
    }
docs: Get the class name of the passed object. If the object itself is of type
  {@link Class}, its name is retrieved, other {@link #getClass()} is called.
  
  @param aObject
  The object who's class name is to be retrieved.
  @return <code>&quot;null&quot;</code> for a <code>null</code> parameter