void () { myFixture.configureByFile("typeParser/typeParser.py"); final PyType type = PyTypeParser.getTypeByName(myFixture.getFile(), "list of (str or int)"); assertInstanceOf(type, PyCollectionType.class); final PyCollectionType collectionType = (PyCollectionType)type; assertNotNull(collectionType); assertEquals("list", collectionType.getName()); assertInstanceOf(collectionType.getIteratedItemType(), PyUnionType.class); }