if (nodeType == NodeType.MATERIAL_NODE) {
if (n instanceof MaterialNode) {
nodes.add(n);
}
} else if (nodeType == NodeType.PROCESS_NODE) {
<BUG>if (n instanceof ProcessNode && !(n instanceof AssayNode) && !(n instanceof ProtocolExecutionNode)) {
nodes.add(n);</BUG>
}
} else if (nodeType == NodeType.DATA_NODE) {
if (n instanceof DataNode) {

if (nodeType == NodeType.MATERIAL_NODE) {
if (n instanceof MaterialNode) {
nodes.add(n);
}
} else if (nodeType == NodeType.PROCESS_NODE) {
if (n instanceof ProcessNode && !(n instanceof ProtocolExecutionNode)) {
nodes.add(n);
}
} else if (nodeType == NodeType.DATA_NODE) {
if (n instanceof DataNode) {
