Added method to access the imports in a given class.