@NotNull public static String getStorageRootFromOptions(@NotNull Module module) { String moduleRoot = ModuleUtilCore.getModuleDirPath(module); String storageRef = module.getOptionValue(JpsProjectLoader.CLASSPATH_DIR_ATTRIBUTE); if (storageRef == null) { return moduleRoot; } storageRef = FileUtil.toSystemIndependentName(storageRef); if (SystemInfo.isWindows ? FileUtil.isAbsolutePlatformIndependent(storageRef) : FileUtil.isUnixAbsolutePath(storageRef)) { return storageRef; } else { return moduleRoot + '/' + storageRef; } }