Extract assertion detection methods out.
Extract isLastPieceOfFunctionCall function out.
More tests
Readability matters