void (MouseEvent e) { EditorMouseEvent event = new EditorMouseEvent(this, e, getMouseEventArea(e)); EditorMouseListener[] listeners = myMouseListeners.toArray(new EditorMouseListener[myMouseListeners.size()]); for (int i = 0; i < listeners.length; i++) { listeners[i].mouseEntered(event); if (event.isConsumed()) { e.consume(); return; } } }