Link arrows overlap

Links are overlapping. When I move the object, it gets better.

How to solve this situation?

As shown in the picture, overlapping, moving and correcting

Look for the suggested “LinkDrawn” DiagramEvent listener.