@NotNull
  private static String getRepresentText(@NotNull PsiElement element) {
    if (element instanceof JvmNamedElement jvmNamedElement && jvmNamedElement.getName() != null) {
      return jvmNamedElement.getName();
    }
    return element.getText();
  }
@NotNull
  private static String getRepresentText(@NotNull PsiElement element)