void (@NotNull GrOpenBlock block) { PsiElement blockParent = block.getParent(); if (blockParent instanceof GrMethod method) { if (GrTraitUtil.isMethodAbstract(method)) { String message = GroovyBundle.message("abstract.methods.must.not.have.body"); AnnotationBuilder builder = myHolder.newAnnotation(HighlightSeverity.ERROR, message); registerMakeAbstractMethodNotAbstractFix(builder, method, true, message, block.getTextRange()).create(); } } }