process all imports including imports of non-modules entities and lazy imports (from body of functions)