diff --git a/spellchecker/src/com/intellij/spellchecker/hunspell/HunspellDictionaryProvider.kt b/spellchecker/src/com/intellij/spellchecker/hunspell/HunspellDictionaryProvider.kt index 06a11b52b5d6..5c4da6aebd1f 100644 --- a/spellchecker/src/com/intellij/spellchecker/hunspell/HunspellDictionaryProvider.kt +++ b/spellchecker/src/com/intellij/spellchecker/hunspell/HunspellDictionaryProvider.kt @@ -1,4 +1,4 @@ -// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. +// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.spellchecker.hunspell import com.intellij.ide.plugins.PluginManagerCore @@ -10,15 +10,13 @@ import com.intellij.spellchecker.util.SpellCheckerBundle import java.io.FileNotFoundException import java.text.ParseException -class HunspellDictionaryProvider : CustomDictionaryProvider { - companion object { - private val UNSUPPORTED_LANGUAGES = setOf("hu_HU") +internal class HunspellDictionaryProvider : CustomDictionaryProvider { + private val UNSUPPORTED_LANGUAGES = setOf("hu_HU") - private fun isHunspellPluginInstalled(): Boolean { - val hunspellId = PluginId.getId("hunspell") - val ideaPluginDescriptor = PluginManagerCore.getPlugin(hunspellId) - return PluginManagerCore.isPluginInstalled(hunspellId) && ideaPluginDescriptor != null && ideaPluginDescriptor.isEnabled - } + private fun isHunspellPluginInstalled(): Boolean { + val hunspellId = PluginId.getId("hunspell") + val ideaPluginDescriptor = PluginManagerCore.getPlugin(hunspellId) + return PluginManagerCore.isPluginInstalled(hunspellId) && ideaPluginDescriptor != null && ideaPluginDescriptor.isEnabled } override fun get(path: String): Dictionary? {