@Nullable
  public static <T extends PsiElement> T safeGetPsiElement(Location<T> location) {
    return location != null ? location.getPsiElement() : null;
  }
@Nullable
  public static <T extends PsiElement> T safeGetPsiElement(Location<T> location)