void (final char c) { boolean old = CodeInsightSettings.getInstance().AUTOCOMPLETE_ON_SMART_TYPE_COMPLETION; if (c != Lookup.NORMAL_SELECT_CHAR) { CodeInsightSettings.getInstance().AUTOCOMPLETE_ON_SMART_TYPE_COMPLETION = false; } try { configureByTestName(); if (myItems != null) { select(c); } checkResultByTestName(); } finally { if (c != Lookup.NORMAL_SELECT_CHAR) { CodeInsightSettings.getInstance().AUTOCOMPLETE_ON_SMART_TYPE_COMPLETION = old; } } }