WidgetState (@Nullable VirtualFile file) { if (file == null) { return WidgetState.HIDDEN; } String lineSeparator = FileDocumentManager.getInstance().getLineSeparator(file, getProject()); String toolTipText = IdeBundle.message("tooltip.line.separator", StringUtil.escapeLineBreak(lineSeparator)); String panelText = LineSeparator.fromString(lineSeparator).toString(); return new WidgetState(toolTipText, panelText, true); }