GitlabProject () { final GitlabProject unspecified = new GitlabProject() { @Override public String getName() { return "-- all issues created by you --"; } }; unspecified.setId(-1); return unspecified; }