It would make sense to overwrite 

isLineInteresting()

in order to speed up parsing. See JavaParser for an example. You need to pass true in the constructor of isStringMatchingEnabled