void (final PsiElement token, final HighlightSeverity type, final @InspectionMessage String message, AnnotationHolder myHolder, IntentionAction @NotNull ... actions) { if (token != null) { AnnotationBuilder builder = myHolder.newAnnotation(type, message).range(token); for (IntentionAction action : actions) { builder = builder.withFix(action); } builder.create(); } }