void (Instruction instruction, int offset, int nextOffset) { if (offset == stop) { maybeReferenced[offset] = false; return; } if(instruction instanceof WriteVariableInstruction && psiManager.areElementsEquivalent(((WriteVariableInstruction)instruction).variable, variable)) { maybeReferenced[offset] = false; return; } if (maybeReferenced[offset]) return; if (nextOffset > flow.getSize()) nextOffset = flow.getSize(); boolean nextState = maybeReferenced[nextOffset]; maybeReferenced[offset] = nextState || instruction instanceof ReadVariableInstruction && psiManager.areElementsEquivalent(((ReadVariableInstruction)instruction).variable, variable); }