if (!this.contains(entity)) {
Graph2D graph = getGraph(entity);
if (isContainerEntityNode(entity)) {
node = getHierarchyManager().createFolderNode(graph);
} else if (FamixEntityMap.getInstance().containsType(entity.getClass())) {
node = graph.createNode();
}
if (node != null) {
this.getNodeToFamixMap().set(node, entity);
this.getFamixToNodeMap().put(entity, node);