public static String stringOrNone(Object obj) {
    if (obj == null) {
      return "(none)";
    }

    return obj.toString();
  }
Returns the string form of an object or {@code "(none)"} (rather than {@code "null"}) for
{@code null}.

@param obj {@code null-ok;} the object to stringify
@return {@code non-null;} the appropriate string form
android/android_framework/dex-maker/src/main/java/com/android/dx/cf/direct/DirectClassFile.java