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