private static @Nullable Path getSelectedNioPath(@Nullable Project project) {
    VirtualFile file = getSelectedFile(project);
    return file != null ? file.getFileSystem().getNioPath(file) : null;
  }
private static @Nullable Path getSelectedNioPath(@Nullable Project project)