void (@NotNull Project project, @NotNull Document document, @Nullable ProblemDescriptor descriptor) { int line = descriptor != null && descriptor.getLineNumber() >= 0 ? descriptor.getLineNumber() : getFirstLine(document); if (line >= 0) { TextRange lineRange = getLineTextRange(document, line); if (!lineRange.isEmpty()) { document.insertString(lineRange.getStartOffset(), "\n"); } } }