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