private function lineIsInsideMethod($line, ReflectionMethod $method) { return $line >= $method->getStartLine() && $line <= $method->getEndLine(); }