diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java index 5d7b615376dd..1b2f6847c9f5 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/ShowIntentionsPass.java @@ -329,7 +329,7 @@ public class ShowIntentionsPass extends TextEditorHighlightingPass { } } - ~ if (indicator != null) { + if (indicator != null) { indicator.setText("Searching for additional intention actions & quick fixes"); } for (IntentionMenuContributor extension : IntentionMenuContributor.EP_NAME.getExtensionList()) { diff --git a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java index 78bf6aa4b686..a9e9c73ee783 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/IntentionListStep.java @@ -76,7 +76,6 @@ public class IntentionListStep implements ListPopupStep) \ No newline at end of file +internal data class IntentionPreviewResult(val psiFile: PsiFile?, val lineFragments: List) \ No newline at end of file diff --git a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewEditorsPanel.kt b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewEditorsPanel.kt index 0411f318e3a3..f45a8534dc64 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewEditorsPanel.kt +++ b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewEditorsPanel.kt @@ -22,7 +22,7 @@ internal class IntentionPreviewEditorsPanel(val editors: List) : JPane private fun createSeparatorLine(colorsScheme: EditorColorsScheme): JPanel { var color = colorsScheme.getColor(CodeInsightColors.METHOD_SEPARATORS_COLOR) - color = color?.let { JBColor.namedColor("Group.separatorColor", JBColor(Gray.xCD, Gray.x51)) } + color = color ?: JBColor.namedColor("Group.separatorColor", JBColor(Gray.xCD, Gray.x51)) return JBUI.Panels.simplePanel().withBorder(JBUI.Borders.customLine(color, 1, 0, 0, 0)) } diff --git a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewPopupUpdateProcessor.kt b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewPopupUpdateProcessor.kt index 902bcc65725a..312b8cb09a23 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewPopupUpdateProcessor.kt +++ b/platform/lang-impl/src/com/intellij/codeInsight/intention/impl/preview/IntentionPreviewPopupUpdateProcessor.kt @@ -72,19 +72,14 @@ internal class IntentionPreviewPopupUpdateProcessor(private val project: Project } private fun renderPreview(result: IntentionPreviewResult?) { - try { - val editors = IntentionPreviewModel.createEditors(project, originalFile, result) - if (editors.isEmpty()) { - select(NO_PREVIEW) - return - } - - editorsToRelease.addAll(editors) - select(index, editors) - } - catch (e: Exception) { + val editors = IntentionPreviewModel.createEditors(project, originalFile, result) + if (editors.isEmpty()) { select(NO_PREVIEW) + return } + + editorsToRelease.addAll(editors) + select(index, editors) } fun setup(updateAdvertiser: (String) -> Unit, parentIndex: Int) { @@ -118,5 +113,5 @@ internal class IntentionPreviewPopupUpdateProcessor(private val project: Project private val ESCAPE_SHORTCUT_TEXT = KeymapUtil.getPreferredShortcutText(ESCAPE.shortcuts) } - class IntentionPreviewPopupKey + internal class IntentionPreviewPopupKey } \ No newline at end of file