void () { final SpellCheckerManager manager = SpellCheckerManager.getInstance(myFixture.getProject()); final RegistryValue registryValue = Registry.get("spellchecker.corrections.limit"); final int oldCorrectionsLimit = registryValue.asInteger(); registryValue.setValue(0); // some incorrect value appeared assertEquals(0, manager.getSuggestions(TYPPPO).size()); registryValue.setValue(oldCorrectionsLimit); }