@Nullable
private static PyType getUnionType(@NotNull PsiElement element, @NotNull TypeEvalContext context) {
if (element instanceof PySubscriptionExpression) {
final PySubscriptionExpression subscriptionExpr = (PySubscriptionExpression)element;
final PyExpression operand = subscriptionExpr.getOperand();
<BUG>final String operandName = resolveToQualifiedName(operand, context);

if ("typing.Union".equals(operandName)) {
return PyUnionType.union(getIndexTypes(subscriptionExpr, context));</BUG>
}

@Nullable
private static PyType getType(@NotNull PyExpression expression, @NotNull TypeEvalContext context) {
final List<PyType> members = Lists.newArrayList();
for (PsiElement resolved : tryResolving(expression, context)) {
members.add(getTypeForResolvedElement(resolved, context));
