boolean (Instruction instruction) { if (instruction == myInstructions[0]) return true; if (!instruction.getRequiredVariables(myFactory).isEmpty() || !instruction.getWrittenVariables(myFactory).isEmpty()) return true; return !instruction.isLinear() || instruction instanceof FinishElementInstruction; }