public @Nullable Object getSelectedObject() {
    final TreePath selectionPath = myTree.getSelectionPath();
    if (selectionPath != null && selectionPath.getLastPathComponent() instanceof MyNode node) {
      NamedConfigurable<?> configurable = node.getConfigurable();
      if (configurable == null) {
        LOG.error("already disposed");
      }
      return configurable == null ? null : configurable.getEditableObject();
    }
    return null;
  }
public @Nullable Object getSelectedObject()