make ImportPathInspection faster

before ImportPathInspection 0.354948s
after ImportPathInspection 0.008674s

All test passed in idea.