void (@NotNull ProjectDescriptor pd, @NotNull PrintWriter out) { int fingerprint = 0; final BuildRootIndex rootIndex = pd.getBuildRootIndex(); final PathRelativizerService relativizer = pd.dataManager.getRelativizer(); final List<ResourceRootDescriptor> roots = rootIndex.getTargetRoots(this, null); for (ResourceRootDescriptor root : roots) { String path = relativizer.toRelative(root.getRootFile().getAbsolutePath()); fingerprint += pathHashCode(path); fingerprint += root.getPackagePrefix().hashCode(); } out.write(Integer.toHexString(fingerprint)); }