void (@Nullable GrTypeElement element, @NotNull @InspectionMessage String message) { if (element == null || !(element.getType() instanceof PsiPrimitiveType)) return; AnnotationBuilder builder = myHolder.newAnnotation(HighlightSeverity.ERROR, message).range(element); builder = registerLocalFix(builder, new GrReplacePrimitiveTypeWithWrapperFix(element), element, message, ProblemHighlightType.ERROR, element.getTextRange()); builder.create(); }