diff --git a/spellchecker/src/com/intellij/spellchecker/DictionaryLevel.kt b/spellchecker/src/com/intellij/spellchecker/DictionaryLevel.kt index 0f659441271d..1c5157f865fd 100644 --- a/spellchecker/src/com/intellij/spellchecker/DictionaryLevel.kt +++ b/spellchecker/src/com/intellij/spellchecker/DictionaryLevel.kt @@ -46,11 +46,15 @@ class ProjectDictionaryLayer(val project: Project) : DictionaryLayer { val name = SpellCheckerBundle.messagePointer("dictionary.name.project.level") } - override val name = Companion.name.get() - override val dictionary: ProjectDictionary = project.service().projectDictionary + override val name: String + get() = Companion.name.get() + override val dictionary: ProjectDictionary + get() = project.service().projectDictionary } object ApplicationDictionaryLayer : DictionaryLayer { - override val name = SpellCheckerBundle.message("dictionary.name.application.level") - override val dictionary: EditableDictionary by lazy { AppDictionaryState.getInstance().dictionary } + override val name: String + get() = SpellCheckerBundle.message("dictionary.name.application.level") + override val dictionary: EditableDictionary + get() = AppDictionaryState.getInstance().dictionary } \ No newline at end of file