private static boolean hasLocalInfo(RegisterSpec spec) {
    return (spec != null) && (spec.getLocalItem().getName() != null);
  }
Helper for {@link #hasAnyLocalInfo} which scrutinizes a single register spec.

@param spec {@code non-null;} spec to scrutinize
@return {@code true} iff the spec refers to any named locals
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/code/OutputFinisher.java