private E getIfSatisfied(@NotNull PsiElement element, @NotNull ActionContext context) {
    Class<E> cls = Objects.requireNonNull(myClass);
    if (!cls.isInstance(element)) return null;
    E e = cls.cast(element);
    return isElementApplicable(e, context) ? e : null;
  }
private E getIfSatisfied(@NotNull PsiElement element, @NotNull ActionContext context)