private static void checkInterfaceTarget(MemberInfoBase<? extends PsiMember>[] infos,
                                           MultiMap<PsiElement, @DialogMessage String> conflictsList) {
    for (MemberInfoBase<? extends PsiMember> info : infos) {
      PsiModifierListOwner member = info.getMember();

      if (member instanceof PsiField || member instanceof PsiClass) {

        if (!member.hasModifierProperty(PsiModifier.STATIC)
            && !(member instanceof PsiClass && ((PsiClass)member).isInterface())) {
          String message =
            JavaRefactoringBundle.message("0.is.not.static.it.cannot.be.moved.to.the.interface", RefactoringUIUtil.getDescription(member, false));
          message = StringUtil.capitalize(message);
          conflictsList.putValue(member, message);
        }
      }

      if (member instanceof PsiField && ((PsiField)member).getInitializer() == null) {
        String message = JavaRefactoringBundle.message("0.is.not.initialized.in.declaration.such.fields.are.not.allowed.in.interfaces",
                                                   RefactoringUIUtil.getDescription(member, false));
        conflictsList.putValue(member, StringUtil.capitalize(message));
      }
    }
  }
private static void checkInterfaceTarget(MemberInfoBase<? extends PsiMember>[] infos,
                                           MultiMap<PsiElement, @DialogMessage String> conflictsList)