void (@NotNull List<PsiLocalVariable> variables, @NotNull PsiElement variableParent) { if (variables.isEmpty()) return; var inlineUtil = CommonJavaInlineUtil.getInstance(); for (int i = variables.size() - 1; i > 0; i--) { inline(variables.get(i), inlineUtil); } PsiLocalVariable firstVariable = variables.get(0); if (VariableAccessUtils.isLocalVariableCopy(firstVariable)) { inline(firstVariable, inlineUtil); } else if (!VariableAccessUtils.variableIsUsed(firstVariable, variableParent)) { firstVariable.delete(); } }