code refactored for 'Java to Sequence Diagram' reverse generation