boolean (PsiExpression expression) { expression = PsiUtil.skipParenthesizedExprDown(expression); if (expression instanceof PsiMethodCallExpression call) { if (!GET_CLASS.test(call)) return false; PsiExpression qualifier = call.getMethodExpression().getQualifierExpression(); return qualifier == null || qualifier instanceof PsiThisExpression thisExpression && thisExpression.getQualifier() == null; } if (expression instanceof PsiClassObjectAccessExpression classExpression) { return isCurrentType(classExpression.getOperand()); } return false; }