Problem (@NotNull VirtualFile virtualFile, int line, int column, String @NotNull [] message) { if (virtualFile.isDirectory() || virtualFile.getFileType().isBinary()) return null; HighlightInfo info = ReadAction.compute(() -> { TextRange textRange = getTextRange(virtualFile, line, column); String description = StringUtil.join(message, "\n"); return HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(textRange).descriptionAndTooltip(description).create(); }); if (info == null) return null; return new ProblemImpl(virtualFile, info, false); }