StateBase () { try { StateBase clone = (StateBase)super.clone(); clone.mySelectedFileTypes = new TreeSet<>(mySelectedFileTypes); return clone; } catch (CloneNotSupportedException e) { throw new AssertionError(); } }