PreferencesFxUtils { public static int getRowCount(GridPane gridPane) { return gridPane.getChildren().stream().mapToInt(n -> { Integer row = GridPane.getRowIndex(n); Integer rowSpan = GridPane.getRowSpan(n); return (row == null ? 0 : row) + (rowSpan == null ? 0 : rowSpan - 1); }).max().orElse(-1); }  static List<Setting> categoriesToSettings(List<Category> categories); static List<Element> categoriesToElements(List<Category> categories); static HashMap<Setting, Category> mapSettingsToCategories(List<Category> categories); static HashMap<Group, Category> mapGroupsToCategories(List<Category> categories); static List<Category> filterCategoriesByDescription(List<Category> categories,
                                                             String description); static List<Setting> filterSettingsByDescription(List<Setting> settings,
                                                          String description); static List<Setting> groupsToSettings(List<Group> groups); static List<Group> filterGroupsByDescription(List<Group> groups, String description); static List<Group> categoriesToGroups(List<Category> categories); static int getRowCount(GridPane gridPane); static List<Category> flattenCategories(List<Category> categoryLst);  }
@Test public void getRowCount() { }