in java-samples/src/main/java/com/jetbrains/generation/GenerateSwitchBranches.java [18:28]
private Nucleotide getBasePair(Nucleotide nucleotide) {
switch (nucleotide) {
case ADENINE:
return Nucleotide.THYMINE;
case CYTOSINE:
return Nucleotide.GUANINE;
case URACIL:
return Nucleotide.ADENINE;
}
return null;
}