private static void addFellow(Component comp, IdSpace owner) { if (owner instanceof Component) ((AbstractComponent) owner).bindToIdSpace(comp); else if (owner instanceof Page) ((AbstractPage) owner).addFellow(comp); if (owner == null && comp instanceof ShadowElement) addToShadowIdMap(comp); }