The arising of the 5-hindrances is beyond our control. However mindfulness and wisdom applied to these hindrances can make a difference between being caught up in them and being free from them.
Understanding the 11 benefits of practicing Metta along with mindfulness of the loveability of the difficult person and all beings can lead to happiness and freedom of the mind from annoyance.
The Buddha emphasized the importance of seeing impermanence in many of his teachings. Reflections on the three wisdoms and how they relate to insight into change.