code: private void addType(Class<?> type, Object object)
      {
          if (!items.containsKey(type))
          {
              items.put(type, new HashSet<>());
          }
          items.get(type).add(object);
      }
docs: Add a type from its interface.
  
  @param type The type interface.
  @param object The type value.