@Override
  public boolean isFocusOwner() {
    Editor editor = getEditor();
    if (editor != null) {
      return IJSwingUtilities.hasFocus(editor.getContentComponent());
    }
    return super.isFocusOwner();
  }
@Override
  public boolean isFocusOwner()