sbool isComponentOrSwingable(O o) { ifclass Swingable if (o instanceof Swingable) true; endif ret o instanceof Component; }