PsiExpression (InstanceofInstruction instruction) { if (instruction.getDfaAnchor() instanceof JavaExpressionAnchor anchor && anchor.getExpression() instanceof PsiInstanceOfExpression instanceOf) { return instanceOf.getOperand(); } return null; }