void () { configureByText(JavaFileType.INSTANCE, "class X { static int sss; public int f() { return this.<caret>sss; }}"); ((EditorImpl)myEditor).getScrollPane().getViewport().setSize(1000, 1000); DaemonCodeAnalyzerSettings.getInstance().setImportHintEnabled(true); List<HighlightInfo> warns = doHighlighting(HighlightSeverity.WARNING); assertOneElement(warns); Editor editor = getEditor(); List<HighlightInfo.IntentionActionDescriptor> actions = ShowIntentionsPass.getAvailableFixes(editor, getFile(), -1, ((EditorEx)editor).getExpectedCaretOffset()); HighlightInfo.IntentionActionDescriptor descriptor = assertOneElement(actions); CodeInsightTestFixtureImpl.invokeIntention(descriptor.getAction(), getFile(), getEditor()); assertEmpty(highlightErrors()); assertEmpty(ShowIntentionsPass.getAvailableFixes(editor, getFile(), -1, ((EditorEx)editor).getExpectedCaretOffset())); }