public static void collectConflicts(PsiReference reference,
                                      PsiElement element,
                                      Map<Language, InlineHandler.Inliner> inliners,
                                      MultiMap<PsiElement, @DialogMessage String> conflicts) {
    final PsiElement referenceElement = reference.getElement();
    final Language language = referenceElement.getLanguage();
    final InlineHandler.Inliner inliner = inliners.get(language);
    if (inliner != null) {
      final MultiMap<PsiElement, String> refConflicts = inliner.getConflicts(reference, element);
      if (refConflicts != null) {
        for (PsiElement psiElement : refConflicts.keySet()) {
          conflicts.putValues(psiElement, refConflicts.get(psiElement));
        }
      }
    }
    else {
      conflicts.putValue(referenceElement,
                         RefactoringBundle.message("dialog.message.cannot.inline.reference.from.0", language.getDisplayName()));
    }
  }
public static void collectConflicts(PsiReference reference,
                                      PsiElement element,
                                      Map<Language, InlineHandler.Inliner> inliners,
                                      MultiMap<PsiElement, @DialogMessage String> conflicts)