private boolean isInteractiveModeSupported() {
    return getEditor() != null && getEditor().getCaretModel().getCaretCount() <= 1 && !(getEditor() instanceof ImaginaryEditor);
  }
private boolean isInteractiveModeSupported()