Add code completion util functions