108109110111112113114115
clauses.add( clause ); } public <T extends Clause> T lastClause(Class<T> type) { Clause clause = clauses.get(clauses.size() - 1); return type.isInstance(clause) ? type.cast(clause) : null; }