getOccurrencesAtPosition support for if/else keywords

this is not used elsewhere. I find it easier to read to include the logic hear instead of breaking it into a function that relies on captured variables.