void (CompositeElement node) { CompositeElement parent = node.getTreeParent(); if (parent != null && builder.skipChildProcessingWhenBuildingStubs(parent, node)) { return; } IElementType type = node.getElementType(); if (type instanceof IStubElementType && ((IStubElementType<?, ?>)type).shouldCreateStub(node)) { result.add(node); } super.visitNode(node); }