Gets the info annotation for the given type. If no info annotation was found, throws RuntimeException.