boolean () { if ((myEditorSwingCaretUpdatesCourier != null) || (myEditor == null) || (myEditor.isDisposed()) ) { return false; } if (ArrayUtil.isEmpty(getCaretListeners())) { return false; } myEditorSwingCaretUpdatesCourier = EditorSwingCaretUpdatesCourier.create(this); return true; }