private static String getNodeText(CheckedTreeNode node, boolean full) {
    Object userObject = node.getUserObject();
    if (userObject instanceof String) {
      return (String)userObject;
    }
    else if (userObject instanceof IntentionActionMetaData metaData) {
      if (full && metaData.getAction() instanceof IntentionActionWrapper wrapper) {
        return wrapper.getFullFamilyName();
      }
      return metaData.getFamily();
    }
    else {
      return "???";
    }
  }
private static String getNodeText(CheckedTreeNode node, boolean full)