Add convenience method to semantic analysis context