Source:
<code>private static Set<Evidence> filterEvidence(Set<Evidence> evidences, EvidenceQueryRes evidenceQuery) { Set<Evidence> filtered = new HashSet<>(); if (evidenceQuery.getGene() != null) { for (Evidence evidence : evidences) { if (evidence.getGene().equals(evidenceQuery.getGene())) { if (evidence.getAlterations().isEmpty()) { filtered.add(evidence); } else { <START> boolean hasjointed = Collections.disjoint(evidence.getAlterations(), evidenceQuery.getAlterations()); <END> if (!hasjointed) { if (evidence.getOncoTreeType() == null) { if (evidence.getEvidenceType().equals(EvidenceType.ONCOGENIC)) { if (evidence.getDescription() == null) { List<Alteration> alterations = new ArrayList<>(); alterations.addAll(evidence.getAlterations()); } } filtered.add(evidence); } else { List<TumorType> tumorType = new ArrayList<>(); if (evidence.getOncoTreeType() != null) { tumorType.add(evidence.getOncoTreeType()); } hasjointed = Collections.disjoint(evidenceQuery.getOncoTreeTypes(), tumorType); if (!hasjointed) { filtered.add(evidence); } else { if (evidence.getLevelOfEvidence() != null && evidence.getPropagation() != null) { LevelOfEvidence propagationLevel = LevelOfEvidence.getByName(evidence.getPropagation()); if (propagationLevel != null) { if (evidenceQuery.getLevelOfEvidences() == null || evidenceQuery.getLevelOfEvidences().size() == 0 || evidenceQuery.getLevelOfEvidences().contains(propagationLevel)) { Evidence tempEvidence = new Evidence(evidence, evidence.getId()); tempEvidence.setLevelOfEvidence(propagationLevel); filtered.add(tempEvidence); } } } } } } } } } } return filtered; }</code><technical_language>variable name "hasjointed" is assigned meaning</technical_language>

Target:
private static Set<Evidence> filterEvidence(Set<Evidence> evidences, EvidenceQueryRes evidenceQuery) { Set<Evidence> filtered = new HashSet<>(); if (evidenceQuery.getGene() != null) { for (Evidence evidence : evidences) { if (evidence.getGene().equals(evidenceQuery.getGene())) { if (evidence.getAlterations().isEmpty()) { filtered.add(evidence); } else { boolean hasjointed = !Collections.disjoint(evidence.getAlterations(), evidenceQuery.getAlterations()); if (hasjointed) { if (evidence.getOncoTreeType() == null) { if (evidence.getEvidenceType().equals(EvidenceType.ONCOGENIC)) { if (evidence.getDescription() == null) { List<Alteration> alterations = new ArrayList<>(); alterations.addAll(evidence.getAlterations()); } } filtered.add(evidence); } else { List<TumorType> tumorType = new ArrayList<>(); if (evidence.getOncoTreeType() != null) { tumorType.add(evidence.getOncoTreeType()); } hasjointed = !Collections.disjoint(evidenceQuery.getOncoTreeTypes(), tumorType); if (hasjointed) { filtered.add(evidence); } else { if (evidence.getLevelOfEvidence() != null && evidence.getPropagation() != null) { LevelOfEvidence propagationLevel = LevelOfEvidence.getByName(evidence.getPropagation()); if (propagationLevel != null) { if (evidenceQuery.getLevelOfEvidences() == null || evidenceQuery.getLevelOfEvidences().size() == 0 || evidenceQuery.getLevelOfEvidences().contains(propagationLevel)) { Evidence tempEvidence = new Evidence(evidence, evidence.getId()); tempEvidence.setLevelOfEvidence(propagationLevel); filtered.add(tempEvidence); } } } } } } } } } } return filtered; }