Action (@NotNull MergeResult result) { return switch (result) { case CANCEL -> myCancelResolveAction; case LEFT -> myLeftResolveAction; case RIGHT -> myRightResolveAction; case RESOLVED -> myAcceptResolveAction; }; }