private void inconsistencyDetected(
    @Nullable ObjectStubTree<?> stubTree,
    @NotNull PsiFileWithStubSupport psiFile,
    @NotNull String extraMessage,
    @NotNull StubInconsistencyReporter.StubTreeAndIndexDoNotMatchSource source
  ) {
    try {
      StubTextInconsistencyException.checkStubTextConsistency(psiFile, SourceOfCheck.WrongTypePsiInStubHelper);
      LOG.error(extraMessage + "\n" + StubTreeLoader.getInstance().stubTreeAndIndexDoNotMatch(stubTree, psiFile, null, source));
    }
    finally {
      onInternalError(psiFile.getVirtualFile());
    }
  }
private void inconsistencyDetected(
    @Nullable ObjectStubTree<?> stubTree,
    @NotNull PsiFileWithStubSupport psiFile,
    @NotNull String extraMessage,
    @NotNull StubInconsistencyReporter.StubTreeAndIndexDoNotMatchSource source
  )