Convert groovy script code to flow chart

Is there a any tool or code in github which will convert groovy code to flow chart? Also is there any tool that can draw/highlight the flow in the flowchart based on the code lines hit while running groovy code with the input