variantAnnotation.getXrefs().forEach(xref -> { if (xref != null) { xrefs.add(xref.getId());
if (variantAnnotation.getXrefs() != null) { for (Xref xref : variantAnnotation.getXrefs()) { addNotNull(xrefs, xref.getId());
xrefs.add(convertXrefToStorage(xref.getId(), xref.getSource()));
VariantAnnotationProto.VariantAnnotation.Xref.Builder xrefBuilder = VariantAnnotationProto.VariantAnnotation.Xref.newBuilder() .setId(xref.getId()) .setSource(xref.getSource()); builder.addXrefs(xrefBuilder.build());