@Override
  public boolean isConfiguredByElement(PsiElement element) {
    if (element == null) return false;
    try {
      return DumbService.getInstance(element.getProject()).computeWithAlternativeResolveEnabled(() -> {
        final PsiClass testClass = JUnitUtil.getTestClass(element);
        final PsiMethod testMethod = JUnitUtil.getTestMethod(element, false);
        final PsiPackage testPackage;
        if (element instanceof PsiPackage) {
          testPackage = (PsiPackage)element;
        }
        else if (element instanceof PsiDirectory) {
          testPackage = JavaDirectoryService.getInstance().getPackage(((PsiDirectory)element));
        }
        else {
          testPackage = null;
        }
        PsiDirectory testDir = element instanceof PsiDirectory ? (PsiDirectory)element : null;

        return getTestObject().isConfiguredByElement(this, testClass, testMethod, testPackage, testDir);
      });
    }
    catch (IndexNotReadyException e) {
      LOG.error(e);
      return false;
    }
  }
@Override
  public boolean isConfiguredByElement(PsiElement element)