void () { if (!myListening) { myListening = true; EditorEventMulticaster multicaster = EditorFactory.getInstance().getEventMulticaster(); multicaster.addEditorMouseMotionListener(this, myProject); multicaster.addEditorMouseListener(this, myProject); } }