PsiType (@NotNull Project project) { final PsiType classType = createElementType(project, FieldElement.class); PsiClass[] classes = JavaPsiFacade.getInstance(project).findClasses(CommonClassNames.JAVA_UTIL_LIST, GlobalSearchScope.allScope(project)); for (PsiClass listClass : classes) { if (listClass.getTypeParameters().length == 1) { return JavaPsiFacade.getElementFactory(project).createType(listClass, classType); } } return PsiTypes.nullType(); }