private @Nullable String getPath(DefaultMutableTreeNode node, boolean presentable) {
    final Object userObject = node.getUserObject();
    if (userObject instanceof String actionId) {

      final TreeNode parent = node.getParent();
      if (parent instanceof DefaultMutableTreeNode) {
        final Object object = ((DefaultMutableTreeNode)parent).getUserObject();
        if (object instanceof Group) {
          return ((Group)object).getActionQualifiedPath(actionId, presentable);
        }
      }

      return myMainGroup.getActionQualifiedPath(actionId, presentable);
    }
    if (userObject instanceof Group) {
      return ((Group)userObject).getQualifiedPath(presentable);
    }
    if (userObject instanceof QuickList) {
      return ((QuickList)userObject).getName();
    }
    return null;
  }
private @Nullable String getPath(DefaultMutableTreeNode node, boolean presentable)