void () { myFixture.configureByFile("typeParser/typeParser.py"); final PyType type = PyTypeParser.getTypeByName(myFixture.getFile(), "dict[str, int]"); assertInstanceOf(type, PyCollectionType.class); final PyCollectionType collectionType = (PyCollectionType)type; assertNotNull(collectionType); assertEquals("dict", collectionType.getName()); final List<PyType> elementTypes = collectionType.getElementTypes(); assertEquals(2, elementTypes.size()); final PyType first = elementTypes.get(0); assertNotNull(first); assertEquals("str", first.getName()); final PyType second = elementTypes.get(1); assertNotNull(second); assertEquals("int", second.getName()); }