@Override
  public boolean isEntryPoint(@NotNull PsiElement psiElement) {
    if (psiElement instanceof PsiClass psiClass) {
      return isServiceOrExported(psiClass);
    }
    return psiElement instanceof PsiMethod method &&
           (isDefaultConstructor(method) || JavaServiceUtil.isServiceProviderMethod(method)) &&
           isServiceOrExported(method.getContainingClass());
  }
@Override
  public boolean isEntryPoint(@NotNull PsiElement psiElement)