protected @Nullable Object findAcceptableElement(PsiElement element) {
    while (element != null && !(element instanceof PsiFile)) {
      if (isSuitable(element)) return element;
      element = element.getParent();
    }
    return null;
  }
protected @Nullable Object findAcceptableElement(PsiElement element)