void (@NotNull TerminalTitle terminalTitle) { try { terminalFile.rename(null, terminalTitle.buildTitle()); } catch (IOException exception) { throw new RuntimeException("Cannot rename"); } FileEditorManager.getInstance(project).updateFilePresentation(terminalFile); }