void checkIfAccessibleType(@NotNull Consumer<? super HighlightInfo.Builder> errorSink) {
    PsiClass member = PsiUtil.resolveClassInClassTypeOnly(mySelectorType);
    if (member != null && !PsiUtil.isAccessible(member.getProject(), member, mySelector, null)) {
      String className = PsiFormatUtil.formatClass(member, PsiFormatUtilBase.SHOW_NAME | PsiFormatUtilBase.SHOW_FQ_NAME);
      errorSink.accept(createError(mySelector, JavaErrorBundle.message("inaccessible.type", className)));
    }
  }
void checkIfAccessibleType(@NotNull Consumer<? super HighlightInfo.Builder> errorSink)