DataExternalizer<ModulePackageRepr> (final DependencyContext context) { return new DataExternalizer<ModulePackageRepr>() { @Override public void save(@NotNull DataOutput out, ModulePackageRepr value) { value.save(out); } @Override public ModulePackageRepr read(@NotNull DataInput in) { return new ModulePackageRepr(context, in); } }; }