List<TypeConstraint> () { PsiParameter parameter = mySection.getParameter(); if (parameter == null) return Collections.emptyList(); PsiType type = parameter.getType(); List<PsiType> types = type instanceof PsiDisjunctionType ? ((PsiDisjunctionType)type).getDisjunctions() : List.of(type); return ContainerUtil.map(types, TypeConstraints::instanceOf); }