List<PropertyBean> (@NotNull JTree tree, @Nullable Object value, int row) { List<PropertyBean> result = new ArrayList<>(); Object userObject = value != null ? ((DefaultMutableTreeNode)value).getUserObject() : null; if (userObject instanceof Group group) { result.add(new PropertyBean("Action ID", group.getId(), true)); } else if (userObject instanceof String) { result.add(new PropertyBean("Action ID", userObject, true)); } return result; }