boolean (final List<? extends RadComponent> selection) { if (myComponentClass.equals(JScrollPane.class.getName())) { if (selection.size() > 1) return false; JComponent liveComponent = selection.get(0).getDelegee(); return liveComponent instanceof Scrollable || liveComponent instanceof JPanel; } return true; }