void () { final boolean modified = myModified || myProjectSdksModel.isModified(); if (modified) { myProjectSdksModel.reset(myProject); } myModified = false; myCancelCallback.accept(modified); super.doCancelAction(); }