StubbedSpine () { StubTree tree = getGreenStubTree(); if (tree != null) return tree.getSpine(); AstSpine astSpine = calcTreeElement().getStubbedSpine(); if (!myTrees.useSpineRefs()) { synchronized (myPsiLock) { updateTrees(myTrees.switchToSpineRefs(FileTrees.getAllSpinePsi(astSpine))); } } return astSpine; }