@Override
  public boolean checkApplicability(@NotNull AnnotationHolder holder, @NotNull GrAnnotation annotation) {
    if (!GroovyCommonClassNames.GROOVY_LANG_DELEGATE.equals(annotation.getQualifiedName())) return false;
    PsiElement annoParent = annotation.getParent();
    PsiElement owner = annoParent instanceof PsiModifierList ? annoParent.getParent() : annoParent;
    if (!(owner instanceof GrMethod)) {
      return false;
    }
    if (((GrMethod)owner).getParameterList().getParametersCount() > 0) {
      holder.newAnnotation(HighlightSeverity.ERROR, GroovyBundle.message("delegate.annotation.is.only.for.methods.without.arguments")).range(annotation).create();
      return true;
    }

    return false;
  }
@Override
  public boolean checkApplicability(@NotNull AnnotationHolder holder, @NotNull GrAnnotation annotation)