Document document = FileDocumentManager.getInstance().getDocument(element.getContainingFile().getVirtualFile());
document.replaceString(element.getTextRange().getStartOffset(), element.getTextRange().getEndOffset(), newText);
PsiDocumentManager.getInstance(element.getProject()).commitDocument(document);
NginxServersConfiguration nginxServersConfiguration = ApplicationManager.getApplication().getComponent(NginxServersConfiguration.class);
nginxServersConfiguration.rebuildFilepaths();
return element;
}
}