public @Nullable FileEditor getFocusedEditor() {
    FileEditor editor = getSelectedEditor();
    return editor != null && UIUtil.isFocusAncestor(editor.getComponent()) ? editor : null;
  }
public @Nullable FileEditor getFocusedEditor()