Get occurrences for 'this' keywords

duplicated code