private @Nullable RangeHighlighter highlightConflictingElement(PsiElement conflictingElement) {
    if (conflictingElement != null) {
      TextRange range = conflictingElement.getTextRange();
      if (conflictingElement instanceof PsiNameIdentifierOwner owner) {
        PsiElement identifier = owner.getNameIdentifier();
        if (identifier != null) {
          range = identifier.getTextRange();
        }
      }
      List<RangeHighlighter> highlighters = new ArrayList<>();
      HighlightManager.getInstance(myProject).addRangeHighlight(
        myEditor, range.getStartOffset(), range.getEndOffset(), EditorColors.SEARCH_RESULT_ATTRIBUTES, false, true, highlighters);
      return ContainerUtil.getOnlyItem(highlighters);
    }
    return null;
  }
private @Nullable RangeHighlighter highlightConflictingElement(PsiElement conflictingElement)