PyCollectionTypeImpl (@NotNull final PsiElement anchor, @NotNull final String classQualifiedName, final boolean isDefinition, @NotNull final List<? extends PyType> elementTypes) { final PyClass pyClass = PyPsiFacade.getInstance(anchor.getProject()).createClassByQName(classQualifiedName, anchor); if (pyClass == null) { return null; } return new PyCollectionTypeImpl(pyClass, isDefinition, elementTypes); }