Statement (Statement stat) { if (stat.getExprents() != null) { return stat; } return switch (stat.type) { case IF, SEQUENCE, SWITCH, SYNCHRONIZED -> getFirstExprentlist(stat.getFirst()); default -> null; }; }