introducer.performInplaceRefactoring(new LinkedHashSet<String>());
}
@Nullable
private static PsiElement performElement(Editor editor, @NotNull ErlangExpression expression, @NotNull List<PsiElement> occurrences) {
VariableTextBuilder builder = new VariableTextBuilder();
expression.accept(builder);
String newName = builder.result();
ErlangExpression initializer = ErlangPsiImplUtil.getNotParenthesizedExpression(expression);
String newText = initializer != null ? newName + " = " + initializer.getText() : null;
Project project = expression.getProject();
if (PsiTreeUtil.hasErrorElements(expression)) {
showCannotPerformError(project, editor, "Selected expression contains errors");