boolean (PsiParameter parameter) { final PsiElement scope = parameter.getDeclarationScope(); if (!(scope instanceof PsiMethod)) { return false; } return !JavaPsiRecordUtil.isCompactConstructor((PsiMethod)scope); }