void (@NotNull ProgressIndicator indicator) { indicator.setIndeterminate(true); final List<String> assemblyRefs = ReadAction.compute(() -> collectAssemblyReferences(fileToRunTaskIn)); try { final PySkeletonRefresher refresher = new PySkeletonRefresher(project, null, mySdk, null, null, folder); if (isFromGiRepository(myQualifiedName)) { if (!generateSkeletonsForGiRepository(refresher, indicator, folder)) return; } else { refresher.getGenerator() .commandBuilder() .assemblyRefs(assemblyRefs) .targetModule(myQualifiedName, null) .runGeneration(indicator); } final VirtualFile skeletonDir; skeletonDir = LocalFileSystem.getInstance().findFileByPath(refresher.getSkeletonsPath()); if (skeletonDir != null) { skeletonDir.refresh(true, true); } } catch (InvalidSdkException | ExecutionException e) { LOG.error(e); } }