private void updateImportButtonState() {
    final int itemCount = logParserComboBox.getItemCount();
    final boolean patternIsValid = this.patternIsValid;
    LOGGER.debug("Detected log parsers count " + itemCount + ", patter is valid: " + patternIsValid);
    importAction.setEnabled(itemCount > 0 && patternIsValid);
  }
Get the maximal heap memory in GB. If it is less than 1GB it will be return 1GB.
olv-core/src/main/java/pl/otros/logview/gui/actions/ParseClipboard.java