@Override
    public boolean isAvailableImpl(@NotNull Project project, Editor editor, PsiFile file) {
        return myElement.isValid();
    }
@Override
    public boolean isAvailableImpl(@NotNull Project project, Editor editor, PsiFile file)