@Override protected void findProblems( @NotNull SoyFile file, @NotNull InspectionManager manager, boolean isOnTheFly, @NotNull List<ProblemDescriptor> problems) { PsiElementCollection elements = PATH_TO_MSG_TAGS_WITHOUT_DESC.navigate(file); for (PsiElement element : elements) { checkCanceled(); problems.add( manager.createProblemDescriptor( element, getMessage(), (LocalQuickFix) null, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, true)); } }
@Override public boolean test(PsiElement element) { return PATH_TO_DESC_VALUE.navigate(element).isEmpty(); }