Object (Object node, int column) { if (column == 0) { return node; } Object object = ((DefaultMutableTreeNode)node).getUserObject(); if (object instanceof NotificationParentGroupBean) { return null; } NotificationSettingsWrapper wrapper = (NotificationSettingsWrapper)object; return switch (column) { case NotificationsTreeTable.LOG_COLUMN -> wrapper.isShouldLog(); case NotificationsTreeTable.READ_ALOUD_COLUMN -> wrapper.isShouldReadAloud(); //case NotificationsTreeTable.DISPLAY_TYPE_COLUMN, default -> wrapper.getDisplayType(); }; }