void (JComponent place) { final PyPackageManagerUI ui = new PyPackageManagerUI(myProject, sdk, new PyPackageManagerUI.Listener() { @Override public void started() { } @Override public void finished(List<ExecutionException> exceptions) { if (exceptions.isEmpty()) { facetErrorPanel.getValidatorsManager().validate(); } } }); ui.install(Collections.singletonList(PyRequirementsKt.pyRequirement(name)), Collections.emptyList()); }