public void run() {
CommandProcessor.getInstance().executeCommand(project, new Runnable() {
public void run() {
ApplyPatchStatus status = null;
for(FilePatch patch: patches) {
<BUG>final ApplyPatchStatus patchStatus = applySinglePatch(project, patch, baseDirectory, stripLeadingDirectories);
</BUG>
status = ApplyPatchStatus.and(status, patchStatus);
}
if (status == ApplyPatchStatus.ALREADY_APPLIED) {

public void run() {
CommandProcessor.getInstance().executeCommand(project, new Runnable() {
public void run() {
ApplyPatchStatus status = null;
for(FilePatch patch: patches) {
final ApplyPatchStatus patchStatus = applySinglePatch(project, patch, baseDirectory, stripLeadingDirectories, createDirectories);
status = ApplyPatchStatus.and(status, patchStatus);
}
if (status == ApplyPatchStatus.ALREADY_APPLIED) {
