public static void chooseFile(
    @NotNull FileChooserDescriptor descriptor,
    @Nullable Project project,
    @Nullable VirtualFile toSelect,
    @NotNull Consumer<? super VirtualFile> callback
  ) {
    chooseFile(descriptor, project, null, toSelect, callback);
  }
public static void chooseFile(
    @NotNull FileChooserDescriptor descriptor,
    @Nullable Project project,
    @Nullable VirtualFile toSelect,
    @NotNull Consumer<? super VirtualFile> callback
  )