code: @Nullable
    public static <KEYTYPE, ENUMTYPE extends Enum <ENUMTYPE> & IHasID <KEYTYPE>> ENUMTYPE getFromIDOrDefault (@Nonnull final Class <ENUMTYPE> aClass,
                                                                                                              @Nullable final KEYTYPE aID,
                                                                                                              @Nullable final ENUMTYPE eDefault)
    {
      ValueEnforcer.notNull (aClass, "Class");
  
      if (aID == null)
        return eDefault;
      return findFirst (aClass, x -> x.getID ().equals (aID), eDefault);
    }
docs: Get the enum value with the passed ID
  
  @param <KEYTYPE>
  The ID type
  @param <ENUMTYPE>
  The enum type
  @param aClass
  The enum class
  @param aID
  The ID to search
  @param eDefault
  The default value to be returned, if the ID was not found.
  @return The default parameter if no enum item with the given ID is present.