DataExternalizer<Integer> () { return new DataExternalizer<>() { @Override public void save(final @NotNull DataOutput out, final Integer value) throws IOException { out.write(value.intValue() & UsageSearchContext.ANY); } @Override public Integer read(final @NotNull DataInput in) throws IOException { return Integer.valueOf(in.readByte() & UsageSearchContext.ANY); } }; }