From 0f05df9e75725470c8dcb08e74dbae5a2766986e Mon Sep 17 00:00:00 2001 From: Dmitry Avdeev Date: Wed, 8 Feb 2012 16:14:49 +0400 Subject: [PATCH] @Nullable --- .../intellij/codeInsight/daemon/impl/HighlightInfoType.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HighlightInfoType.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HighlightInfoType.java index 92598f6a067d..4130215eacd4 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HighlightInfoType.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/HighlightInfoType.java @@ -33,6 +33,7 @@ import com.intellij.psi.PsiElement; import org.jdom.Element; import org.jetbrains.annotations.NonNls; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; public interface HighlightInfoType { @NonNls String UNUSED_SYMBOL_SHORT_NAME = "UNUSED_SYMBOL"; @@ -92,7 +93,7 @@ public interface HighlightInfoType { HighlightInfoType INJECTED_LANGUAGE_FRAGMENT = new HighlightInfoTypeImpl(SYMBOL_TYPE_SEVERITY, CodeInsightColors.INFORMATION_ATTRIBUTES); @NotNull - HighlightSeverity getSeverity(PsiElement psiElement); + HighlightSeverity getSeverity(@Nullable PsiElement psiElement); TextAttributesKey getAttributesKey();