void () { ImportChooser.getInstance() .selectImport(mySources, myUseQualifiedImport) .onSuccess(candidate -> { PsiDocumentManager.getInstance(myTarget.getProject()).commitAllDocuments(); doWriteAction(candidate); }); }