@NotNull public Type typeToType(PsiType type, boolean notNull) { Type result = typeToType(type); if (notNull) { result.convertedToNotNull(); } return result; }
@NotNull private List<Type> typesToNotNullableTypeList(@NotNull PsiType[] types) { List<Type> result = new LinkedList<Type>(typesToTypeList(types)); for (Type p : result) p.convertedToNotNull(); return result; }