first of all why we speak in English? I prefer polish :) but ok
i use import within method to optimization general flow of program (to import this only when error occurs ), but after you point this i realized that this only will be imported only when error occurs so this import should be on top of the file