RedmineProject () { final RedmineProject unspecified = new RedmineProject() { @NotNull @Override public String getName() { return "-- from all projects --"; } @NotNull @Override public String getIdentifier() { return getName(); } }; unspecified.setId(-1); return unspecified; }