void (@NotNull PsiElement fragment, boolean textBlock) { for (int pos : findPositions(fragment.getText(), textBlock)) { holder.registerProblem(fragment, TextRange.create(pos, pos + 2), textBlock ? InspectionGadgetsBundle.message("inspection.use.of.slash.s.message") : InspectionGadgetsBundle.message("inspection.use.of.slash.s.non.text.block.message"), new ReplaceWithSpaceFix()); } }