public static @NotNull Attachment createAttachment(@NotNull VirtualFile file) {
    return createAttachment(file.getPresentableUrl(), file);
  }
public static @NotNull Attachment createAttachment(@NotNull VirtualFile file)