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