private static List<MavenArtifact> getUnresolvedDependencies(State state, Predicate<File> fileExistsPredicate) {
    synchronized (state) {
      if (state.myUnresolvedDependenciesCache == null) {
        List<MavenArtifact> result = new ArrayList<>();
        for (MavenArtifact each : state.myDependencies) {
          boolean resolved = each.isResolved(fileExistsPredicate);
          each.setFileUnresolved(!resolved);
          if (!resolved) result.add(each);
        }
        state.myUnresolvedDependenciesCache = result;
      }
      return state.myUnresolvedDependenciesCache;
    }
  }
private static List<MavenArtifact> getUnresolvedDependencies(State state, Predicate<File> fileExistsPredicate)