Flexible Time Window for each Job

Is there an out of the box solution to implement a flexible time window for jobs?
I mean implementing SoftActivityConstraint for each Job or for all Jobs
I mean implementing SoftActivityConstraint to add a flexible time window to an unassigned Job or to all Jobs. Those. if flexible mode is enabled (constraint is added), then the user could be advised to change the working hours to fit into the solution?
I found this solution, but it is too old - link
Thanks in advance!