A note of warning: this filter behaves differently to the `checkMatches` method (which I am thinking of replacing it with). The latter will throw an exception if no valid examples remain after filtering. IMHO, having zero valid examples is not really an exception case. After all, it is only completions we are talking about, nothing wrong with having no completions. :)