RadContainer (final List<? extends RadComponent> selection) { RadContainer parent = null; for (RadComponent c : selection) { if (parent == null) { parent = c.getParent(); } else if (parent != c.getParent()) { parent = null; break; } } return parent; }