docs: private static int getNextEntryEventTypeId() {
          int higherTypeId = Integer.MIN_VALUE;
          int i = 0;
          EntryEventType[] values = EntryEventType.values();
          for (EntryEventType value : values) {
              int typeId = value.getType();
              if (i == 0) {
                  higherTypeId = typeId;
              } else {
                  if (typeId > higherTypeId) {
                      higherTypeId = typeId;
                  }
              }
              i++;
          }
  
          int eventFlagPosition = Integer.numberOfTrailingZeros(higherTypeId);
  
          return 1 << ++eventFlagPosition;
      }