Replacing BitSet with HashSet as the parser was not doing well with the Java grammar