EditorNotificationPanel (final @NotNull VirtualFile file, @NotNull FileEditor fileEditor, @NotNull Project project) { EditorNotificationPanel panel = new EditorNotificationPanel(fileEditor, EditorNotificationPanel.Status.Info); panel.setText(IdeBundle.message("file.changed.externally.message")); panel.createActionLabel(IdeBundle.message("file.changed.externally.reload"), () -> { if (!project.isDisposed()) { file.refresh(false, false); EditorNotifications.getInstance(project).updateNotifications(file); } }); return panel; }