void (@NotNull PsiElement startLocation, @NotNull PsiElement endLocation, Object... infos) { if (startLocation.getTextLength() == 0 && startLocation == endLocation) { return; } final LocalQuickFix[] fixes = createAndInitFixes(infos); final String description = inspection.buildErrorString(infos); final ProblemDescriptor problemDescriptor = holder.getManager() .createProblemDescriptor(startLocation, endLocation, description, ProblemHighlightType.GENERIC_ERROR_OR_WARNING, onTheFly, fixes); holder.registerProblem(problemDescriptor); }