diff --git a/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/HiglightingFactory.kt b/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/HighlightingFactory.kt similarity index 96% rename from plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/HiglightingFactory.kt rename to plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/HighlightingFactory.kt index de791c9a06b9..bed1a139eb0a 100644 --- a/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/HiglightingFactory.kt +++ b/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/HighlightingFactory.kt @@ -7,7 +7,7 @@ import com.intellij.openapi.editor.colors.TextAttributesKey import com.intellij.openapi.util.TextRange import org.jetbrains.kotlin.utils.addToStdlib.applyIf -internal object HiglightingFactory { +internal object HighlightingFactory { fun createInfoAnnotation(holder: AnnotationHolder, textRange: TextRange, message: String?, textAttributes: TextAttributesKey?) { val builder = if (message == null) holder.newSilentAnnotation(HighlightSeverity.INFORMATION) diff --git a/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/beforeResolve/AbstractBeforeResolveHiglightingVisitory.kt b/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/beforeResolve/AbstractBeforeResolveHiglightingVisitory.kt index 382679b0f796..1fb978c57c24 100644 --- a/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/beforeResolve/AbstractBeforeResolveHiglightingVisitory.kt +++ b/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/beforeResolve/AbstractBeforeResolveHiglightingVisitory.kt @@ -5,10 +5,10 @@ import com.intellij.lang.annotation.AnnotationHolder import com.intellij.openapi.editor.colors.TextAttributesKey import com.intellij.openapi.util.TextRange import org.jetbrains.kotlin.idea.base.highlighting.visitor.AbstractHighlightingVisitor -import org.jetbrains.kotlin.idea.highlighting.HiglightingFactory +import org.jetbrains.kotlin.idea.highlighting.HighlightingFactory abstract class AbstractBeforeResolveHiglightingVisitory(protected val holder: AnnotationHolder): AbstractHighlightingVisitor() { override fun createInfoAnnotation(textRange: TextRange, message: String?, textAttributes: TextAttributesKey?) { - HiglightingFactory.createInfoAnnotation(holder, textRange, message, textAttributes) + HighlightingFactory.createInfoAnnotation(holder, textRange, message, textAttributes) } } \ No newline at end of file diff --git a/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/highlighters/AfterResolveHighlighter.kt b/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/highlighters/AfterResolveHighlighter.kt index 529841e6f64d..6bca007a6946 100644 --- a/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/highlighters/AfterResolveHighlighter.kt +++ b/plugins/kotlin/highlighting/src/org/jetbrains/kotlin/idea/highlighting/highlighters/AfterResolveHighlighter.kt @@ -8,7 +8,7 @@ import com.intellij.openapi.util.TextRange import com.intellij.psi.PsiElement import org.jetbrains.kotlin.analysis.api.KtAnalysisSession import org.jetbrains.kotlin.idea.base.highlighting.isNameHighlightingEnabled -import org.jetbrains.kotlin.idea.highlighting.HiglightingFactory +import org.jetbrains.kotlin.idea.highlighting.HighlightingFactory import org.jetbrains.kotlin.psi.KtElement internal abstract class AfterResolveHighlighter( @@ -20,7 +20,7 @@ internal abstract class AfterResolveHighlighter( abstract fun highlight(element: KtElement) private fun createInfoAnnotation(textRange: TextRange, message: String?, textAttributes: TextAttributesKey?) { - HiglightingFactory.createInfoAnnotation(holder, textRange, message, textAttributes) + HighlightingFactory.createInfoAnnotation(holder, textRange, message, textAttributes) } protected fun createInfoAnnotation(element: PsiElement, message: String? = null, textAttributes: TextAttributesKey) {