final PsiElement newImport = getNewImport(da, startElement.getText(), (GoFile) file);
if (newImport != null) {
WriteCommandAction writeCommandAction = new WriteCommandAction(file.getProject()) {
@Override
protected void run(@NotNull Result result) throws Throwable {
declarations.replace(newImport);
}
};
writeCommandAction.execute();
return;
}