public static boolean robotContainsBeacon(Robot paramRobot) {
    RobotPart[] arrayOfRobotPart = paramRobot.getRobotParts();
    for (int i = 0; i < arrayOfRobotPart.length; i++)
    {
      if (!(arrayOfRobotPart[i] instanceof InventoryContainer))
        continue;
      Enumeration localEnumeration = ((InventoryContainer)arrayOfRobotPart[i]).getInventory().elements();
      while (localEnumeration.hasMoreElements()) {
        if ((localEnumeration.nextElement() instanceof Satellite))
          return true;
      }
    }
    return false;
  }