getOccurrencesAtPosition support for if/else keywords