private static void addMessagesForTreeChild(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();
    }
  }
private static void addMessagesForTreeChild(final PsiElement token,
                                              final HighlightSeverity type,
                                              final @InspectionMessage String message,
                                              AnnotationHolder myHolder, IntentionAction @NotNull ... actions)