Don't try to extract import
to a method: simpler fix
#18054
Merged
import
to a method: simpler fix
#18054