wouldn't it be better to put the right phpdoc on ``$metadata->preSerializeMethods`` so that it is infered by the IDE (``\ReflectionMethod[]``) ?