void () { final SpellCheckerManager manager = SpellCheckerManager.getInstance(myFixture.getProject()); final RegistryValue registryValue = Registry.get("spellchecker.corrections.limit"); final int oldCorrectionsLimit = registryValue.asInteger(); registryValue.setValue(1000); // because of quality threshold assertTrue(manager.getSuggestions("SomeVeryLongWordToReduceSuggestionsCount").size() < 1000); registryValue.setValue(oldCorrectionsLimit); }