Since we call this on every keystroke when we are in the indentation. Would it make sense to have the value of this pref cached and update it with the preference change event. I haven't seen any performance issue, but my machine isn't that fast, maybe someone might notice it?