return (mouseListener != null || mouseMotionListener != null || (eventMask & AWTEvent.MOUSE_EVENT_MASK) != 0);
return (mouseMotionListener != null || (eventMask & AWTEvent.MOUSE_MOTION_EVENT_MASK) != 0);
  boolean eventTypeEnabled (int type)  {    if (type > AWTEvent.RESERVED_ID_MAX)      return true;    switch (type)      {      case ComponentEvent.COMPONENT_HIDDEN:      case ComponentEvent.COMPONENT_MOVED:      case ComponentEvent.COMPONENT_RESIZED:      case ComponentEvent.COMPONENT_SHOWN:        return (componentListener != null                || (eventMask & AWTEvent.COMPONENT_EVENT_MASK) != 0);      case KeyEvent.KEY_PRESSED:      case KeyEvent.KEY_RELEASED:      case KeyEvent.KEY_TYPED:        return (keyListener != null                || (eventMask & AWTEvent.KEY_EVENT_MASK) != 0);      case MouseEvent.MOUSE_CLICKED:      case MouseEvent.MOUSE_ENTERED:      case MouseEvent.MOUSE_EXITED:      case MouseEvent.MOUSE_PRESSED:      case MouseEvent.MOUSE_RELEASED:      case MouseEvent.MOUSE_MOVED:      case MouseEvent.MOUSE_DRAGGED:        return (mouseListener != null                || mouseMotionListener != null                || (eventMask & AWTEvent.MOUSE_EVENT_MASK) != 0);              case FocusEvent.FOCUS_GAINED:      case FocusEvent.FOCUS_LOST:        return (focusListener != null                || (eventMask & AWTEvent.FOCUS_EVENT_MASK) != 0);      case InputMethodEvent.INPUT_METHOD_TEXT_CHANGED:      case InputMethodEvent.CARET_POSITION_CHANGED:        return (inputMethodListener != null                || (eventMask & AWTEvent.INPUT_METHOD_EVENT_MASK) != 0);              case PaintEvent.PAINT:      case PaintEvent.UPDATE:        return (eventMask & AWTEvent.PAINT_EVENT_MASK) != 0;              default:        return false;      }  }