void (final Facet facet) { final FacetInfo exiting = myFacet2Info.get(facet); if (exiting != null) { LOG.assertTrue(exiting.getName().equals(facet.getName())); LOG.assertTrue(exiting.getFacetType().equals(facet.getType())); LOG.assertTrue(exiting.getConfiguration().equals(facet.getConfiguration())); return; } FacetInfo info = new FacetInfo(facet.getType(), facet.getName(), facet.getConfiguration(), myFacet2Info.get(facet.getUnderlyingFacet())); myFacet2Info.put(facet, info); myInfo2Facet.put(info, facet); getTreeModel(facet.getModule()).addFacetInfo(info); }