String (@NotNull CommonProblemDescriptor descriptor, @Nullable PsiElement psiElement) { TextRange range = descriptor instanceof ProblemDescriptorBase ? ((ProblemDescriptorBase)descriptor).getTextRange() : null; return extractHighlightedText(range, psiElement); }