boolean (IndentUsageStatistics stats) { int spaces = stats.getTotalLinesWithLeadingSpaces(); int total = stats.getTotalLinesWithLeadingSpaces() + stats.getTotalLinesWithLeadingTabs(); return (double)spaces / total > RATE_THRESHOLD; }