@Override
  protected final void collectNavigationMarkers(@NotNull PsiElement element,
                                                @NotNull Collection<? super RelatedItemLineMarkerInfo<?>> result) {
    // UAST is used for getting the class identifier to work for all UAST languages (not possible in plain PSI)
    UElement uElement = UastUtils.getUParentForIdentifier(element);
    if (!(uElement instanceof UClass uClass)) {
      return;
    }
    if (uElement instanceof UAnonymousClass) {
      return;
    }

    PsiElement identifier = UElementKt.getSourcePsiElement(uClass.getUastAnchor());
    if (identifier == null) {
      return;
    }

    process(identifier, uClass.getJavaPsi(), result);
  }
@Override
  protected final void collectNavigationMarkers(@NotNull PsiElement element,
                                                @NotNull Collection<? super RelatedItemLineMarkerInfo<?>> result)