@Override
  public boolean isApplicableTo(@NotNull PsiElement e) {
    return e instanceof GrAnonymousClassDefinition
           && ((GrAnonymousClassDefinition)e).getMethods().length <= 1;
  }
@Override
  public boolean isApplicableTo(@NotNull PsiElement e)