boolean (Component c) { return Boolean.TRUE.equals(((JComponent)c).getClientProperty("JComboBox.isTableCellEditor")) || ComponentUtil.findParentByCondition(c, p -> p instanceof JBTableRowEditor) == null && ComponentUtil.findParentByCondition(c, p -> p instanceof JTable) != null; }