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

import com.intellij.lang.annotation.AnnotationHolder
import lang.psi.api.statements.ScVariableDefinition
import lang.psi.api.base.types.ScSimpleTypeElement
import AnnotatorUtils._
import org.jetbrains.plugins.scala.extensions._

/**
 * Pavel.Fatin, 18.05.2010
 */
trait VariableDefinitionAnnotator {
  def annotateVariableDefinition(definition: ScVariableDefinition, holder: AnnotationHolder, highlightErrors: Boolean) {
    if (highlightErrors && definition.pList.allPatternsSimple) {
      for (expr <- definition.expr; element <- definition.children.findByType(classOf[ScSimpleTypeElement]))
        checkConformance(expr, element, holder)
    }
  }
}<commit_msg>Fixed rename parameter for extract method.<commit_after>package org.jetbrains.plugins.scala
package annotator

import com.intellij.lang.annotation.AnnotationHolder
import lang.psi.api.statements.ScVariableDefinition
import lang.psi.api.base.types.ScSimpleTypeElement
import AnnotatorUtils._
import org.jetbrains.plugins.scala.extensions._
import com.intellij.codeInspection.ProblemHighlightType

/**
 * Pavel.Fatin, 18.05.2010
 */
trait VariableDefinitionAnnotator {
  def annotateVariableDefinition(definition: ScVariableDefinition, holder: AnnotationHolder, highlightErrors: Boolean) {
    if (highlightErrors && definition.pList.allPatternsSimple) {
      for (expr <- definition.expr; element <- definition.children.findByType(classOf[ScSimpleTypeElement]))
        checkConformance(expr, element, holder)
    }
  }
}
{'fraction_non_alphanumeric': 0.09505459216441875, 'fraction_numerical': 0.010276172125883108, 'mean_word_length': 5.6581196581196584, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '3753351', 'n_tokens_mistral': 465, 'n_tokens_neox': 428, 'n_words': 79}