}
@Override
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
PsiElement element = descriptor.getPsiElement();
ErlangRecordExpression recordExpression = PsiTreeUtil.getParentOfType(element, ErlangRecordExpression.class);
if (recordExpression != null) {
PsiReference reference = recordExpression.getReferenceInternal();
PsiElement resolve = reference != null ? reference.resolve() : null;
if (resolve != null) {
ErlangTypedRecordFields fields = ((ErlangRecordDefinition) resolve).getTypedRecordFields();
if (fields != null) {
String replace = fields.getText().replaceFirst("\\{", "").replace("}", "");