Map<String, R> getMapOfInstancesBy<R extends object.Object<R>>( String key, [ String? id, ]) => getField(key).asInstanceMap(id);