LPS-42908 Introduce method addImpossibleTerm() to reduce duplication