@ApiStatus.Internal
  default void addHighlightingAnnotation(@NotNull PsiElement target,
                                         @NotNull TextAttributesKey key,
                                         @NotNull HighlightSeverity severity) {
    final String message = isTestMode() ? key.getExternalName() : null;
    // CodeInsightTestFixture#testHighlighting doesn't consider annotations with severity level < INFO
    final HighlightSeverity actualSeverity =
      isTestMode() && severity.myVal < HighlightSeverity.INFORMATION.myVal ? HighlightSeverity.INFORMATION : severity;
    (message == null ? getHolder().newSilentAnnotation(actualSeverity) : getHolder().newAnnotation(actualSeverity, message))
      .range(target).textAttributes(key).create();
  }
@ApiStatus.Internal
  default void addHighlightingAnnotation(@NotNull PsiElement target,
                                         @NotNull TextAttributesKey key,
                                         @NotNull HighlightSeverity severity)