void () { final boolean defaultImportStyle = PyCodeInsightSettings.getInstance().PREFER_FROM_IMPORT; try { PyCodeInsightSettings.getInstance().PREFER_FROM_IMPORT = false; doMoveSymbolTest("bar", "b.py"); } finally { PyCodeInsightSettings.getInstance().PREFER_FROM_IMPORT = defaultImportStyle; } }