The invention relates to tetra-substituted heteroarylic compounds of the formula (I)wherein X1, X3 and X4 are independently C or N, Y is C—H, N—H or N, wherein the total number of nitrogen atoms represented by X1, X3, X4 and Y is 1 or 2; rings A and B are independently selected from phenyl or pyridyl; R1, R4, R′, R″, n and m are as defined herein. Such compounds are suitable for the treatment of a disorder or disease which is mediated by the activity of MDM2 and/or MDM4, or variants thereof.