code: private void setPackagePath(Dependency dep) {
          final File file = new File(dep.getFilePath());
          final String parent = file.getParent();
          if (parent != null) {
              dep.setPackagePath(parent);
          }
      }
docs: Sets the package path on the given dependency.
  
  @param dep the dependency to update