void (@NotNull ProblemDescriptor problem, @NotNull PsiElement target) { PsiElement original = problem.getPsiElement(); VirtualFile vFile = original.getContainingFile().getVirtualFile(); assert vFile != null; String path = FileUtil.toSystemIndependentName(vFile.getPath()); String description = XmlStringUtil.stripHtml(problem.getDescriptionTemplate()); String template = AnalysisBundle.message("inspection.redirect.template", description, path, original.getTextRange().getStartOffset(), vFile.getName()); ProblemDescriptor newProblem = getManager().createProblemDescriptor(target, template, (LocalQuickFix)null, problem.getHighlightType(), isOnTheFly()); registerProblem(newProblem); }