code: private EnumEventType convertEventToEnum(final EventType<? extends Event> eventType) {
  
          EnumEventType convertedType = null;
  
          if (getAnnotationValue() != null && getAnnotationValue().length > 0) {
              // Retrieve all annotation event types
              final EnumEventType[] aTypes = getAnnotationValue()[0].getClass().getEnumConstants();
              // Parse all annotation event types
              for (int i = 0; i < aTypes.length && convertedType == null; i++) {
                  // Find the corresponding annotation event type if its javaFX event type matches
                  if (aTypes[i].eventType() == eventType) {
                      convertedType = aTypes[i];
                  }
              }
          }
          return convertedType;
      }
docs: Convert a JavaFX event type into an annotation event type.
  
  @param eventType the JavaFX event type
  
  @return the Annotation event type or null if not found