ProblemDescriptor (@NotNull PsiFile file, @NotNull Document document, @NotNull InspectionManager manager, boolean isOnTheFly, int line, int rightMargin, @NotNull @InspectionMessage String problemText, LocalQuickFix @NotNull ... fixes) { int start = document.getLineStartOffset(line); int end = document.getLineEndOffset(line); if (end > start + rightMargin) { TextRange exceedingRange = new TextRange(start + rightMargin, end); return manager.createProblemDescriptor(file, exceedingRange, problemText, GENERIC_ERROR_OR_WARNING, isOnTheFly, fixes); } return null; }