extract method ReflectionBuilder.php