Object object = checkNode.getUserObject();
if (!(object instanceof IOntologyConcept)) {
continue;
}
IOntologyConcept ontologyConcept = (IOntologyConcept) object;
SimpleVertex simpleVertex = graphModel.getVertexByConcept(ontologyConcept);
if (simpleVertex != null) {
SuperVertex superVertex = simpleVertex.getSuperVertex();
IVertex vertex = superVertex == null ? simpleVertex : superVertex;
if (hide) {
graphModel.removeVertex(vertex);
} else {
graphModel.addVertex(vertex);