public static @NotNull Project getProjectInReadAction(@NotNull PsiElement element) {
    return ReadAction.compute(() -> element.getProject());
  }
public static @NotNull Project getProjectInReadAction(@NotNull PsiElement element)