for (int i = 0; i < societies.size(); i++) if (!((SocietyComponent)societies.get(i)).isEditable())
for (int i = 0; i < getComponentCount(); i++) if (!((ModifiableConfigurableComponent)getComponent(i)).isEditable())
  public boolean isEditable() {    if (editable) {       // make sure that societies are editable too      for (int i = 0; i < societies.size(); i++)	if (!((SocietyComponent)societies.get(i)).isEditable())	  return false;      return true;    }    return false;  }