code: public boolean isMatching(GestureEvent event) {
          return (event != null) && !event.isConsumed()
                  && (gestureModifiers.isNone()
                  || ((event.isAltDown() == gestureModifiers.isAlt())
                  && (event.isShiftDown() == gestureModifiers.isShift())
                  && (event.isControlDown() == gestureModifiers.isControl())
                  && (event.isMetaDown() == gestureModifiers.isMeta())
                  && (event.isShortcutDown() == gestureModifiers.isShortcut())));
      }
docs: Check, whether the given GestureEvent is matching the current properties.
  
  @param event GestureEvent to test.
  @return True, if no modifiers are set, or the event matches exactly the properties.
  False, if some modifiers are set, and the event doesn't match them, or if the event is null.