added a method to ReflectionHelper