class JavaLexed implements AutoCloseable {

    public LexicalElement get(int i) {
        assertOpen();
        if( i < 0 || i >= lexicalElements.size()){
            return null;
        }
        return lexicalElements.get(i);
    }

    public  JavaLexed(Source source);

}