public static @Nullable Path getPreferredSavePathForNonExistentFile(@NotNull VirtualFile file) {
    if (file instanceof LightVirtualFile) {
      LightEditorInfo editorInfo = ContainerUtil.getFirstItem(LightEditService.getInstance().getEditorManager().getEditors(file));
      return editorInfo != null ? editorInfo.getPreferredSavePath() : null;
    }
    return null;
  }
public static @Nullable Path getPreferredSavePathForNonExistentFile(@NotNull VirtualFile file)