private static <T extends PsiElement & NavigationItem> @NotNull String getPresentationName(@NotNull T element) {
    String name = element.getName();
    return name != null ? name : "<anonymous>";
  }
private static <T extends PsiElement & NavigationItem> @NotNull String getPresentationName(@NotNull T element)