PsiProvidesStatementStub (@NotNull LighterAST tree, @NotNull LighterASTNode node, @NotNull StubElement<?> parentStub) { LighterASTNode ref = LightTreeUtil.firstChildOfType(tree, node, JavaElementType.JAVA_CODE_REFERENCE); String refText = ref != null ? JavaSourceUtil.getReferenceText(tree, ref) : null; return new PsiProvidesStatementStubImpl(parentStub, refText); }