void (String renamedOutputFileName) { String renamedBefore = getMyRenamedOutputFileName(); this.update( () -> myRenamedOutputFileName = renamedOutputFileName, (builder, entity) -> { if (Objects.equals(renamedBefore, renamedOutputFileName)) return; builder.modifyEntity(FileCopyPackagingElementEntity.Builder.class, entity, ent -> { ent.setRenamedOutputFileName(renamedOutputFileName); return Unit.INSTANCE; }); } ); }