IdeaTitledBorder (@NlsContexts.BorderTitle String title, boolean hasIndent) { int top = Math.max(0, intValue("ide.titled.border.top", TITLED_BORDER_TOP_INSET)); int left = Math.max(0, intValue("ide.titled.border.left", TITLED_BORDER_LEFT_INSET)); int right = Math.max(0, intValue("ide.titled.border.right", TITLED_BORDER_RIGHT_INSET)); int bottom = Math.max(0, intValue("ide.titled.border.bottom", TITLED_BORDER_BOTTOM_INSET)); @SuppressWarnings("UseDPIAwareInsets") Insets insets = new Insets(top, left, bottom, right); return createTitledBorder(title, hasIndent, insets); }