PyType (@NotNull PsiElement anchor, @NotNull String typeString) { final PyExpression expression = PyUtil.createExpressionFromFragment(typeString, anchor); if (expression != null) { final PyBuiltinCache builtinCache = PyBuiltinCache.getInstance(anchor); if (expression instanceof PyStringLiteralExpression) { return builtinCache.getStrType(); } if (expression instanceof PyNumericLiteralExpression) { return builtinCache.getIntType(); } } return null; }