List<Instruction> (PsiStatement @NotNull [] statements) { List<Instruction> instructions = new ArrayList<>(statements.length); for (PsiStatement statement : statements) { Instruction instruction = Instruction.create(statement); if (instruction == null) return null; instructions.add(instruction); } return instructions; }