Systematic classification of two-loop realizations of the Weinberg operator