void (@NotNull PsiThisExpression expression) { super.visitThisExpression(expression); PsiElement parenthesizedThis = findBiggestParenthesizedExpr(expression); if (parenthesizedThis.getParent() instanceof PsiNewExpression) { final PsiReference qualifier = expression.getQualifier(); if (qualifier == null || qualifier.resolve() == PsiTreeUtil.getParentOfType(expression, PsiClass.class)) { registerError(expression); } } }