@Override
  public boolean isApplicable(PsiElement @NotNull [] elements) {
    return (elements.length == 1) &&
           (elements[0] instanceof PyExpressionStatement) &&
           (PsiTreeUtil.getParentOfType(elements[0], PyFunction.class) != null);
  }
@Override
  public boolean isApplicable(PsiElement @NotNull [] elements)