I've changed this to use the same logic as in the constructor, where the ClassName filter is generated, which uses `ClassInfo::subclassesFor($foreignClass)`