@Override
  protected boolean isEnabledOnElementsOutsideEditor(PsiElement @NotNull [] elements) {
    if (elements.length == 1) {
      return elements[0] instanceof PyFile && !PyUtil.isPackage((PyFile)elements[0]);
    }
    return false;
  }
@Override
  protected boolean isEnabledOnElementsOutsideEditor(PsiElement @NotNull [] elements)