void (final ActionEvent e) { String revisionExpression = myTextField.getText(); myLastResultText = revisionExpression; myLastResult = false; try { GitRevisionNumber revision = ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> { return GitRevisionNumber.resolve(myProject, gitRoot(), revisionExpression); }, GitBundle.message("progress.title.validating.revision"), true, project); GitUtil.showSubmittedFiles(myProject, revision.asString(), gitRoot(), false, false); myLastResult = true; } catch (VcsException ex) { GitUIUtil.showOperationError(myProject, ex, GitBundle.message("operation.name.validating.revision.0", revisionExpression)); } if (statusChanged != null) { statusChanged.run(); } }