void () { myTaskStateCombo = new TaskStateCombo() { @Nullable @Override protected CustomTaskState getPreferredState(@NotNull TaskRepository repository, @NotNull Collection<CustomTaskState> available) { return repository.getPreferredOpenTaskState(); } }; }