void apply(AnnotationHolder holder) { MessageConsumerImpl errorc = new ErrorMessageConsumer(holder); MessageConsumerImpl warningc = new WarningMessageConsumer(holder); for (Pair<PsiElement, String> error : errors) { errorc.onMessage(error.first, error.second); } for (Pair<PsiElement, String> warning : warnings) { warningc.onMessage(warning.first, warning.second); } }