Much better, thanks.
I've copied this method from `int LongMethodRule::getCompoundStmtLength(CompoundStmt *compoundStmt)` changing name to match new type - maybe it could be moved to base class or extracted to util.