refactor: add static methods for create DotGraphVisitor
core: add method for print line numbers
core: process nested ternary operators