context.processMessage(new ProgressMessage(AndroidJpsBundle.message("android.jps.progress.proguard", module.getName())));
final Map<AndroidCompilerMessageKind, List<String>> messages =
AndroidCommonUtils.launchProguard(platform.getTarget(), platform.getSdkToolsRevision(), platform.getSdk().getHomePath(),
proguardCfgPaths, includeSystemProguardCfg, inputJarOsPath, externalJarOsPaths,
outputJarPath, logsDirOsPath);
<BUG>AndroidJpsUtil.addMessages(context, messages, BUILDER_NAME, module.getName());

final boolean success = messages.get(AndroidCompilerMessageKind.ERROR).isEmpty();

proguardStateStorage.update(module.getName(), success ? newState : null);
if (success) {
final Timestamps timestamps = context.getProjectDescriptor().timestamps.getStorage();
for (File file : proguardCfgFiles) {
timestamps.saveStamp(file, new ModuleBuildTarget(module, JavaModuleBuildTargetType.PRODUCTION), file.lastModified());</BUG>
}

context.processMessage(new ProgressMessage(AndroidJpsBundle.message("android.jps.progress.proguard", module.getName())));
final Map<AndroidCompilerMessageKind, List<String>> messages =
AndroidCommonUtils.launchProguard(platform.getTarget(), platform.getSdkToolsRevision(), platform.getSdk().getHomePath(),
proguardCfgPaths, includeSystemProguardCfg, inputJarOsPath, externalJarOsPaths,
outputJarPath, logsDirOsPath);
AndroidJpsUtil.addMessages(context, messages, PRO_GUARD_BUILDER_NAME, module.getName());
return messages.get(AndroidCompilerMessageKind.ERROR).isEmpty()
? Pair.create(true, newState) : null;
