boolean (final List<? extends RadComponent> selection) { for (RadComponent component : selection) { if (!(component.getDelegee() instanceof AbstractButton) || component.getDelegee() instanceof JButton) { return false; } } return true; }