void (@NotNull PsiMethod method) { PsiClass aClass = method.getContainingClass(); if (aClass == null || !aClass.isRecord()) return; if (JavaPsiRecordUtil.isCompactConstructor(method)) { checkCompact(method); } else { checkCanonical(method); } }