private void addSourceCodeRemark(TestSolution testSolution,Element element,String message,String defaultLang,String currentLang,String detectedLang,String testedText){
  if (testSolution.equals(TestSolution.PASSED) || StringUtils.isBlank(message)) {
    return;
  }
  List<EvidenceElement> evidenceElementList=new ArrayList<>();
  if (StringUtils.isNotBlank(currentLang)) {
    evidenceElementList.add(getEvidenceElement(DEFAULT_LANGUAGE_EE,defaultLang));
    evidenceElementList.add(getEvidenceElement(CURRENT_LANGUAGE_EE,currentLang));
  }
 else {
    evidenceElementList.add(getEvidenceElement(LANGUAGE_EE,defaultLang));
  }
  evidenceElementList.add(getEvidenceElement(DETECTED_LANGUAGE_EE,detectedLang));
  if (testedText.length() > DISPLAYABLE_TEXT_SIZE) {
    testedText=testedText.substring(0,DISPLAYABLE_TEXT_SIZE);
  }
  evidenceElementList.add(getEvidenceElement(EXTRACTED_TEXT_EE,testedText));
  addSourceCodeRemark(testSolution,element,message,evidenceElementList);
}

private void addSourceCodeRemark ( TestSolution testSolution , Element element , String message , String defaultLang , String currentLang , String detectedLang , String testedText ) { if ( testSolution . equals ( TestSolution . PASSED ) || StringUtils . isBlank ( message ) ) { return ; } List < EvidenceElement > evidenceElementList = new ArrayList < > ( ) ; if ( StringUtils . isNotBlank ( currentLang ) ) { evidenceElementList . add ( getEvidenceElement ( DEFAULT_LANGUAGE_EE , defaultLang ) ) ; evidenceElementList . add ( getEvidenceElement ( CURRENT_LANGUAGE_EE , currentLang ) ) ; } else { evidenceElementList . add ( getEvidenceElement ( LANGUAGE_EE , defaultLang ) ) ; } evidenceElementList . add ( getEvidenceElement ( DETECTED_LANGUAGE_EE , detectedLang ) ) ; if ( testedText . length ( ) > DISPLAYABLE_TEXT_SIZE ) { testedText = testedText . substring ( 0 , DISPLAYABLE_TEXT_SIZE ) ; } evidenceElementList . add ( getEvidenceElement ( EXTRACTED_TEXT_EE , testedText ) ) ; addSourceCodeRemark ( testSolution , element , message , evidenceElementList ) ; }
create a sourcecoderemark with the link text and the value of the title attribute as arguments
