docs: public static int setAndGetListenerFlags(ListenerAdapter listenerAdapter) {
          InternalMapListenerAdapter internalMapListenerAdapter = (InternalMapListenerAdapter) listenerAdapter;
          ListenerAdapter[] listenerAdapters = internalMapListenerAdapter.getListenerAdapters();
          EntryEventType[] values = EntryEventType.values();
  
          int listenerFlags = 0;
  
          for (EntryEventType eventType : values) {
              ListenerAdapter definedAdapter = listenerAdapters[eventType.ordinal()];
              if (definedAdapter != null) {
                  listenerFlags = listenerFlags | eventType.getType();
              }
          }
          return listenerFlags;
      }