void (StubElement element, StringBuffer buffer, String offset) { PsiElement psi = element.getPsi(); buffer.append(offset).append("[").append(psi.toString()). append(element instanceof NamedStub ? " : " + ((NamedStub<?>) element).getName() : ""). append("]\n"); for (StubElement stubElement : ((List<StubElement>) element.getChildrenStubs())) { getStubsTreeImpl(stubElement, buffer, offset + " "); } }