List<String> () { UnknownSdkTracker.getInstance(getProject()).updateUnknownSdks(); List<String> infos = new ArrayList<>(); EditorNotificationPanel sdkNotification = SdkSetupNotificationTestBase.runOnText(myFixture, "Sample.java", "class Sample { java.lang.String foo; }"); if (sdkNotification != null) { infos.add("SdkSetupNotification:" + sdkNotification.getText()); } for (UnknownSdkFix notification : UnknownSdkEditorNotification.getInstance(getProject()).getNotifications()) { infos.add("SdkFixInfo:" + notification.toString()); } return infos; }