code: public boolean endsWith(ICMLModule oneButLast, ICMLModule lastElement) {
          return endsWith(lastElement) && stack[sp - 2].equals(oneButLast);
      }
docs: Convenience method to check the last two added elements.