private static PyGenericType getGenericType(@NotNull PsiElement element, @NotNull TypeEvalContext context) {
if (element instanceof PyCallExpression) {
final PyCallExpression assignedCall = (PyCallExpression)element;
final PyExpression callee = assignedCall.getCallee();
if (callee != null) {
<BUG>final String calleeQName = resolveToQualifiedName(callee, context);

if ("typing.TypeVar".equals(calleeQName)) {
final PyExpression[] arguments = assignedCall.getArguments();</BUG>
if (arguments.length > 0) {

private static PyGenericType getGenericType(@NotNull PsiElement element, @NotNull TypeEvalContext context) {
if (element instanceof PyCallExpression) {
final PyCallExpression assignedCall = (PyCallExpression)element;
final PyExpression callee = assignedCall.getCallee();
if (callee != null) {
final Collection<String> calleeQNames = resolveToQualifiedNames(callee, context);
if (calleeQNames.contains("typing.TypeVar")) {
final PyExpression[] arguments = assignedCall.getArguments();
if (arguments.length > 0) {
