String (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 "???"; } }