@Override public void indexClass(PsiJetClassStub stub, IndexSink sink) { String name = stub.getName(); if (name != null) { sink.occurrence(JetIndexKeys.SHORT_NAME_KEY, name); } String fqn = stub.getQualifiedName(); if (fqn != null) { sink.occurrence(JetIndexKeys.FQN_KEY, fqn); } }
@Override public void indexClass(PsiJetClassStub stub, IndexSink sink) { String name = stub.getName(); if (name != null) { sink.occurrence(JetShortClassNameIndex.getInstance().getKey(), name); } String fqn = stub.getQualifiedName(); if (fqn != null) { sink.occurrence(JetFullClassNameIndex.getInstance().getKey(), fqn); } for (String superName : stub.getSuperNames()) { sink.occurrence(JetSuperClassIndex.getInstance().getKey(), superName); } recordClassOrObjectByPackage(stub, sink); }