if (! (parentMap instanceof ComponentInputMap)) throw new IllegalArgumentException();  if (((ComponentInputMap) parentMap).getComponent() != component) throw new IllegalArgumentException();
if (parentMap != null && !(parentMap instanceof ComponentInputMap)) throw new IllegalArgumentException("ComponentInputMaps can only have " + "ComponentInputMaps for parents");  if (parentMap != null && ((ComponentInputMap) parentMap).getComponent() != component) throw new IllegalArgumentException("ComponentInputMaps' parents must " + "be associated with the same JComponents");
  public void setParent(InputMap parentMap)  {    if (! (parentMap instanceof ComponentInputMap))      throw new IllegalArgumentException();    if (((ComponentInputMap) parentMap).getComponent() != component)      throw new IllegalArgumentException();       super.setParent(parentMap);    // FIXME: Notify component.  }