Handle imports and modules in hints
Set a maximum size for expanded hints