void (KotlinClassOrObjectStub<? extends KtClassOrObject> stub, IndexSink sink) { for (String superName : stub.getSuperNames()) { sink.occurrence(KotlinSuperClassIndex.Helper.getIndexKey(), superName); } if (!(stub instanceof KotlinClassStub)) { return; } KotlinModifierListStub modifierListStub = getModifierListStub(stub); if (modifierListStub == null) return; if (modifierListStub.hasModifier(KtTokens.ENUM_KEYWORD)) { sink.occurrence(KotlinSuperClassIndex.Helper.getIndexKey(), Enum.class.getSimpleName()); } if (modifierListStub.hasModifier(KtTokens.ANNOTATION_KEYWORD)) { sink.occurrence(KotlinSuperClassIndex.Helper.getIndexKey(), Annotation.class.getSimpleName()); } }