public static @Nullable String stringFromSelector(Pointer selector) {
    ID id = myFoundationLibrary.NSStringFromSelector(selector);
    return ID.NIL.equals(id) ? null : toStringViaUTF8(id);
  }
public static @Nullable String stringFromSelector(Pointer selector)