BalloonLayoutConfiguration (@NotNull Notification notification, @NotNull BalloonLayoutData layoutData, boolean actions) { boolean hasTitle = notification.hasTitle(); boolean hasContent = notification.hasContent(); if (hasTitle && hasContent && actions) { return treeLines(); } if (hasContent && NotificationsManagerImpl.calculateContentHeight(hasTitle || actions ? 1 : 2) < layoutData.fullHeight) { return treeLines(); } return twoLines(); }