Impact of losses or gain on interaction of the NLSE solitons: the interplay between direct computer experimentation and the generalized Karpman–Solov’ev perturbation approach