It is a holistic process that occurs as a unit: you notice your own lack of mindfulness; and that noticing itself is a result of mindfulness; and mindfulness is bare attention; and bare attention is noticing things exactly as they are without distortion; and the way they are is impermanent (anicca), unsatisfactory (dukkha), and selfless (anatta).