в идеа return set высвечивается Incompatible types. что не так
public static HashSet<Integer> createSet() {
        // напишите тут ваш код
        Set<Integer> set = new HashSet<Integer> ();

        for (int i = 0; i < 20; i++) {
            set.add (i);
        }
        return set;

    }