fix: replace recursive analysis algorithms with iterations to avoid StackOverflow on big methods (#441)