public static void SendNewCompetitorPopup(GameContext gameContext, GameEntity niche, GameEntity product) { var potentialLeader = Markets.GetPotentialMarketLeader(gameContext, niche.niche.NicheType); var hasBiggestPotential = potentialLeader.company.Id == product.company.Id; if (Companies.IsInPlayerSphereOfInterest(product, gameContext) && hasBiggestPotential) { AddPopup(gameContext, new PopupMessageCompanySpawn(product.company.Id)); } }