@ApiStatus.Internal
  @RequiresReadLock
  public final @NotNull TargetPresentation computePresentation(@NotNull PsiElement element) {
    //noinspection unchecked
    return targetPresentation(
      (T)element,
      myRenderingInfo,
      this::getNavigationItemAttributes,
      this::getItemLocation,
      this::getErrorAttributes
    );
  }
@ApiStatus.Internal
  @RequiresReadLock
  public final @NotNull TargetPresentation computePresentation(@NotNull PsiElement element)