ApplyPatchStatus () { Boolean isSuccess = ApplicationManager.getApplication().runWriteAction((Computable<Boolean>)() -> { List<FilePatch> filePatches = myVerifier.execute(); myFailedPatches.addAll(filePatches); myPatches.removeAll(filePatches); return myFailedPatches.isEmpty(); }); return isSuccess ? ApplyPatchStatus.SUCCESS : ApplyPatchStatus.FAILURE; }