title: How to get conditional formationg of cell in Excel file using Apache POI?
body: <p>I have a xlsx-file that already has several conditional formatting rules.
  How can I get formatting rules from the cell? 
  I want to "read" all rules from existing cell and apply them to new ones, that I'll create</p>
  
  <p>Thank you!</p>
  
  <pre><code>SheetConditionalFormatting rules = sheet.getSheetConditionalFormatting(); 
  Cell cell = sheet.createRow(18).createCell(1); 
  CellReference cr = new CellReference(cell.getRowIndex(), cell.getColumnIndex()); 
  CellRangeAddress[] range = {CellRangeAddress.valueOf("B19")};
  ConditionalFormatting rule = rules.getConditionalFormattingAt(0);
  rules.addConditionalFormatting(range, rule.getRule(0)); 
  </code></pre>
  
  <p>But I want be able to do smth like that:</p>
  
  <pre><code>cell.getFormattingRules();
  </code></pre>
  
  <hr>
  
  <p>I found answer. When I got all rules in the sheet, I can get range of this rules. And now I need to check, is my cell in this range or not.
  Thanks everyone! </p>