code: public static String getPackageName(final Object object, final String valueIfNull) {
          if (object == null) {
              return valueIfNull;
          }
          return getPackageName(object.getClass());
      }
docs: <p>Gets the package name of an {@code Object}.</p>
  
  @param object  the class to get the package name for, may be null
  @param valueIfNull  the value to return if null
  @return the package name of the object, or the null value