Ref<PyType> (@NotNull PsiElement resolved, @NotNull Context context) { if (resolved instanceof PyParenthesizedExpression) { final PyExpression containedExpression = PyPsiUtils.flattenParens((PyExpression)resolved); return containedExpression != null ? getType(containedExpression, context) : null; } return null; }