public static function getVisibility(Node\Stmt\ClassMethod $method): int
    {
        if ($method->isPrivate()) {
            return VisibilityInterface::PRIVATE;
        }
        if ($method->isProtected()) {
            return VisibilityInterface::PROTECTED;
        }
        return VisibilityInterface::PUBLIC;
    }