void (@NotNull GrFileStub stub, @NotNull IndexSink sink) { String name = stub.getName().toString(); if (stub.isScript() && name != null) { sink.occurrence(GrScriptClassNameIndex.KEY, name); final String pName = GrStubUtils.getPackageName(stub); final String fqn = StringUtil.isEmpty(pName) ? name : pName + "." + name; sink.occurrence(GrFullScriptNameStringIndex.KEY, fqn); } for (String anno : stub.getAnnotations()) { sink.occurrence(GrAnnotatedMemberIndex.KEY, anno); } }