void (EditorNotificationPanel panel, @NotNull String expectedMessagePrefix) { assertThat(panel).isNotNull(); final IntentionActionWithOptions action = panel.getIntentionAction(); assertThat(action).isNotNull(); final String text = action.getText(); assertThat(text).isNotNull(); if (!text.startsWith(expectedMessagePrefix)) { final int length = Math.min(text.length(), expectedMessagePrefix.length()); assertThat(text.substring(0, length)).isEqualTo(expectedMessagePrefix); } }