private static void inlineParameters(PsiExpression defToInline, Map<PsiParameter, Collection<PsiReferenceExpression>> paramsToInline) {
      for (Map.Entry<PsiParameter, Collection<PsiReferenceExpression>> entry : paramsToInline.entrySet()) {
        Collection<PsiReferenceExpression> refsToInline = entry.getValue();
        try {
          PsiExpression[] exprs = new PsiExpression[refsToInline.size()];
          int idx = 0;
          for (PsiReferenceExpression reference : refsToInline) {
            exprs[idx++] = CommonJavaInlineUtil.getInstance().inlineVariable(entry.getKey(), defToInline, reference, null);
          }

          for (PsiExpression expr : exprs) {
            if (expr != null) CommonJavaRefactoringUtil.tryToInlineArrayCreationForVarargs(expr);
          }
        }
        catch (IncorrectOperationException e) {
          LOG.error(e);
        }
      }
    }
private static void inlineParameters(PsiExpression defToInline, Map<PsiParameter, Collection<PsiReferenceExpression>> paramsToInline)