docs: public static boolean isRemoteable(Class<?> valueClass, int rmicCompatible) {
          // NOTE: This logic must be kept in sync with write_value.
  
          return valueClass.isInterface() &&
                 valueClass != Serializable.class &&
                 valueClass != Externalizable.class &&
                 (isCORBAObject(valueClass, rmicCompatible) ||
                  Remote.class.isAssignableFrom(valueClass) ||
                 isAbstractInterface(valueClass, rmicCompatible));
      }