private static void inline(@NotNull PsiLocalVariable variable, @NotNull CommonJavaInlineUtil inlineUtil) {
    final PsiExpression initializer = variable.getInitializer();
    assert initializer != null;
    final Collection<PsiReferenceExpression> references = VariableAccessUtils.getVariableReferences(variable);
    for (PsiJavaCodeReferenceElement reference : references) {
      inlineUtil.inlineVariable(variable, initializer, reference, null);
    }
    if (!VariableAccessUtils.variableIsAssigned(variable)) {
      variable.delete();
    }
  }
private static void inline(@NotNull PsiLocalVariable variable, @NotNull CommonJavaInlineUtil inlineUtil)