public static @Nullable VirtualFile getLastOpenedFile(@Nullable Project project) {
    String last = getLastOpenedFilePath(project);
    return last != null ? LocalFileSystem.getInstance().findFileByPath(last) : null;
  }
public static @Nullable VirtualFile getLastOpenedFile(@Nullable Project project)