PyDynamicallyEvaluatedType (@NotNull PyType type) { final LinkedHashSet<PyType> members = new LinkedHashSet<>(); if (type instanceof PyUnionType) { members.addAll(((PyUnionType)type).getMembers()); } else { members.add(type); } members.add(null); return new PyDynamicallyEvaluatedType(members); }