void (@NotNull PsiThisExpression thisValue) { super.visitThisExpression(thisValue); if (thisValue.getQualifier() != null) { return; } final PsiElement parent = PsiTreeUtil.skipParentsOfType(thisValue, PsiParenthesizedExpression.class, PsiConditionalExpression.class, PsiTypeCastExpression.class); if (!(parent instanceof PsiInstanceOfExpression)) { return; } registerError(thisValue, parent); }