Replaces wildcard imports with exact imports