ReadWriteVariableInstruction (Instruction[] flow) { Pair<GrExpression, PsiType> instanceOf = getInstanceof(); if (instanceOf == null) return null; Instruction instruction = ControlFlowUtils.findInstruction(instanceOf.getFirst(), flow); if (instruction instanceof ReadWriteVariableInstruction) { return (ReadWriteVariableInstruction)instruction; } return null; }