CompositeElement (@NotNull IElementType type) { if (type instanceof ICompositeElementType) { return (CompositeElement)((ICompositeElementType)type).createCompositeNode(); } CompositeElement customComposite = factory(type).createComposite(type); return customComposite != null ? customComposite : DefaultFactoryHolder.DEFAULT.createComposite(type); }