Collection<PsiType> (PsiAnnotation psiAnnotation, PsiType psiType) { Collection<PsiType> types = PsiAnnotationUtil.getAnnotationValues(psiAnnotation, "types", PsiType.class); if (types.isEmpty()) { types = Collections.singletonList(psiType); } return types; }