boolean (final @NotNull VirtualFile directory) { VcsNotifier vcsNotifier = VcsNotifier.getInstance(myProject); GitCommandResult result = Git.getInstance().init(myProject, directory); if (result.success()) { refreshVcsDir(directory, GitUtil.DOT_GIT); vcsNotifier.notifySuccess(REPOSITORY_CREATED, "", GitBundle.message("git.integration.created.git.repository.in", directory.getPresentableUrl())); return true; } else { vcsNotifier.notifyError(INIT_ERROR, GitBundle.message("git.integration.could.not.git.init", directory.getPresentableUrl()), result.getErrorOutputAsHtmlString(), true); LOG.info(result.getErrorOutputAsHtmlString()); return false; } }