public static <T extends PsiElement> Location<T> fromPsiElement(@NotNull Project project, final T element) {
    if (element == null) return null;
    return new PsiLocation<>(project, element);
  }
public static <T extends PsiElement> Location<T> fromPsiElement(@NotNull Project project, final T element)