if (term instanceof NF1a) {
final NF1a nf1 = (NF1a) term;
final int a = nf1.lhsA();
addTerms(ontologyNF1, a, nf1.getQueueEntry());
} else if (term instanceof NF1b) {
final NF1b nf1 = (NF1b) term;
final int a1 = nf1.lhsA1();
final int a2 = nf1.lhsA2();
addTerms(ontologyNF1, a1, nf1.getQueueEntry1());
addTerms(ontologyNF1, a2, nf1.getQueueEntry2());
} else if (term instanceof NF2) {
final NF2 nf2 = (NF2) term;
addTerms(ontologyNF2, nf2);
} else if (term instanceof NF3) {
final NF3 nf3 = (NF3) term;