PyType (@NotNull PsiElement anchor, @NotNull String typeString) { final PyPsiFacade facade = getPsiFacade(anchor); final String realTypeName = getNumpyRealTypeName(typeString); PyType type = facade.parseTypeAnnotation(realTypeName, anchor); if (type != null) { return type; } type = facade.parseTypeAnnotation(typeString, anchor); if (type != null) { return type; } return getNominalType(anchor, typeString); }