PomModelEvent () { TreeChangeEvent destinationTreeChange = new TreeChangeEventImpl(model.getModelAspect(TreeAspect.class), changedFile); PomModelEvent event = new PomModelEvent(model, destinationTreeChange); action.makeChange(destinationTreeChange); changedElement.clearCaches(); if (changedElement instanceof CompositeElement) { ((CompositeElement) changedElement).subtreeChanged(); } return event; }