void (GrFieldStub stub, IndexSink sink) { String name = stub.getName(); sink.occurrence(GrFieldNameIndex.KEY, name); if (GrStubUtils.isGroovyStaticMemberStub(stub)) { sink.occurrence(JavaStubIndexKeys.JVM_STATIC_MEMBERS_NAMES, name); sink.occurrence(JavaStubIndexKeys.JVM_STATIC_MEMBERS_TYPES, GrStubUtils.getShortTypeText(stub.getTypeText())); } for (String annName : stub.getAnnotations()) { if (annName != null) { sink.occurrence(GrAnnotatedMemberIndex.KEY, annName); } } }