void (@NotNull PsiClassStub stub, @NotNull IndexSink sink) { StubElement parent = stub.getParentStub(); if (parent instanceof PsiJavaFileStub) { sink.occurrence(JavaStubIndexKeys.UNNAMED_CLASSES, JavaUnnamedClassUtil.getJvmName(((PsiJavaFileStub)parent).getPsi().getName())); } }