@Override public PsiAnnotationStub createStub(LighterAST tree, LighterASTNode node, StubElement parentStub) { String text = LightTreeUtil.toFilteredString(tree, node, null); return new PsiAnnotationStubImpl(parentStub, text); }
@NotNull @Override public PsiAnnotationStub deserialize(@NotNull StubInputStream dataStream, StubElement parentStub) throws IOException { return new PsiAnnotationStubImpl(parentStub, dataStream.readUTFFast()); }
@Override public AnnotationVisitor visitAnnotation(String desc, boolean visible) { return StubBuildingVisitor.getAnnotationTextCollector(desc, text -> new PsiAnnotationStubImpl(myModList, text)); }