private static @NotNull List<VirtualFile> toVirtualFiles(@NotNull List<? extends Path> paths) {
      return paths.stream().map(root -> LocalFileSystem.getInstance().findFileByNioFile(root)).filter(State::isValid).collect(
        Collectors.toList());
    }
private static @NotNull List<VirtualFile> toVirtualFiles(@NotNull List<? extends Path> paths)