List<Object> () { List<Object> lst = new ArrayList<>(); switch (loopType) { case FOR: if (getInitExprent() != null) { lst.add(getInitExprent()); } case WHILE: lst.add(getConditionExprent()); } lst.add(first); switch (loopType) { case DO_WHILE -> lst.add(getConditionExprent()); case FOR -> lst.add(getIncExprent()); } return lst; }