@Nullable public static GitVcs getInstance(Project project) { if (project == null || project.isDisposed()) { return null; } return (GitVcs) ProjectLevelVcsManager.getInstance(project).findVcsByName(NAME); }
/** * Show message in the Version Control Console * * @param message a message to show * @param style a style to use */ private void showMessage(@NotNull String message, final TextAttributes style) { if (message.length() > MAX_CONSOLE_OUTPUT_SIZE) { message = message.substring(0, MAX_CONSOLE_OUTPUT_SIZE); } myVcsManager.addMessageToConsoleWindow(message, style); }