I don't think we want to keep this helper function in CodeHintManager since it is not one of CHM apis and  we don't want to call it with ``CodeHintManager. _hasValidExclusion``. The reason I put it as a helper function in each extension is to document the logic as the helper function name and its JSDoc.