diff --git a/platform/lang-api/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsSettings.kt b/platform/lang-api/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsSettings.kt index 305af4efaef5..4aec8b961ba3 100644 --- a/platform/lang-api/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsSettings.kt +++ b/platform/lang-api/src/com/intellij/codeInsight/hints/settings/ParameterNameHintsSettings.kt @@ -61,7 +61,7 @@ class Diff(val added: Set, val removed: Set) { class ParameterNameHintsSettings : PersistentStateComponent { private val removedPatterns = hashMapOf>() private val addedPatterns = hashMapOf>() - private val myOptions = hashMapOf() + private val options = hashMapOf() fun addIgnorePattern(language: Language, pattern: String) { val patternsBefore = getAddedPatterns(language) @@ -103,7 +103,7 @@ class ParameterNameHintsSettings : PersistentStateComponent { } } - myOptions.forEach { id, value -> + options.forEach { id, value -> val element = Element("option") element.setAttribute("id", id) element.setAttribute("value", value.toString()) @@ -116,7 +116,7 @@ class ParameterNameHintsSettings : PersistentStateComponent { override fun loadState(state: Element) { addedPatterns.clear() removedPatterns.clear() - myOptions.clear() + options.clear() val allBlacklistElements = state.getChild(XmlTagHelper.BLACKLISTS) ?.getChildren(XmlTagHelper.LANGUAGE_LIST) ?: emptyList() @@ -134,7 +134,7 @@ class ParameterNameHintsSettings : PersistentStateComponent { state.getChildren("option").forEach { val id = it.getAttributeValue("id") val value = it.getAttributeValue("value").toBoolean() - myOptions[id] = value + options[id] = value } } @@ -144,15 +144,15 @@ class ParameterNameHintsSettings : PersistentStateComponent { } fun getOption(optionId: String): Boolean? { - return myOptions[optionId] + return options[optionId] } fun setOption(optionId: String, value: Boolean?) { if (value == null) { - myOptions.remove(optionId) + options.remove(optionId) } else { - myOptions[optionId] = value + options[optionId] = value } }