<commit_before>package org.jetbrains.plugins.scala
package annotator
package quickfix

import com.intellij.codeInsight.intention.IntentionAction
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiFile
import org.jetbrains.plugins.scala.lang.psi.impl.source.ScalaCodeFragment

object ReportHighlightingErrorQuickFix extends IntentionAction {

  override def getText: String = ScalaBundle.message("report.highlighting.error.fix")

  override def startInWriteAction: Boolean = false

  override def isAvailable(project: Project, editor: Editor, file: PsiFile): Boolean = {
    if (file.isInstanceOf[ScalaCodeFragment]) return false
    true
  }

  override def invoke(project: Project, editor: Editor, file: PsiFile): Unit = {
    DesktopUtils.browse("https://youtrack.jetbrains.net/issues/SCL#newissue=yes")
  }

  override def getFamilyName: String = ScalaBundle.message("report.highlighting.error.fix")
}<commit_msg>ReportHighlightingErrorQuickFix: Use BrowserUtil#browse instead of DesktopUtils#browse #SCL-20398<commit_after>package org.jetbrains.plugins.scala
package annotator
package quickfix

import com.intellij.codeInsight.intention.IntentionAction
import com.intellij.ide.BrowserUtil
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiFile
import org.jetbrains.plugins.scala.extensions.ObjectExt
import org.jetbrains.plugins.scala.lang.psi.impl.source.ScalaCodeFragment

object ReportHighlightingErrorQuickFix extends IntentionAction {

  override def getText: String = ScalaBundle.message("report.highlighting.error.fix")

  override def startInWriteAction: Boolean = false

  override def isAvailable(project: Project, editor: Editor, file: PsiFile): Boolean = {
    if (file.is[ScalaCodeFragment]) return false
    true
  }

  override def invoke(project: Project, editor: Editor, file: PsiFile): Unit =
    BrowserUtil.browse("https://youtrack.jetbrains.net/issues/SCL#newissue=yes")

  override def getFamilyName: String = ScalaBundle.message("report.highlighting.error.fix")
}
{'fraction_non_alphanumeric': 0.09408983451536643, 'fraction_numerical': 0.002364066193853428, 'mean_word_length': 5.9605263157894735, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5568913', 'n_tokens_mistral': 661, 'n_tokens_neox': 617, 'n_words': 128}