Add classes replaced by the public api to the code checker

@karlitschek