You can use Reflections.getRawType() utility method.