HashMap lineMap = new HashMap();
Program astRoot = fFinder.getASTRoot();
ArrayList resultingMatches = new ArrayList();
for (int i = 0; i < occurrences.length; i++) {
OccurrenceLocation loc = occurrences[i];
DLTKElementLine lineKey = getLineElement(astRoot, loc,
lineMap);
if (lineKey != null) {
OccurrenceMatch match = new OccurrenceMatch(lineKey,
loc.getOffset(), loc.getLength(), loc
.getFlags());
resultingMatches.add(match);
// TODO see location flags for more information
// lineKey.setFlags(lineKey.getFlags() |