code: private static List<Class<?>> getAllSerializableInTree(Class<?> type) {
          List<Class<?>> list = new ArrayList<>();
          addAllSerializableInTree(type, list);
          return list;
      }
docs: /* Utility methods for root calculation