code: public boolean showElement(String key, String defaultValue, Properties displayOptions) {
  
          if (defaultValue == null) {
              return ((displayOptions != null) && Boolean.valueOf(displayOptions.getProperty(key)).booleanValue());
          }
          if (displayOptions == null) {
              return Boolean.valueOf(defaultValue).booleanValue();
          }
          return Boolean.valueOf(displayOptions.getProperty(key, defaultValue)).booleanValue();
      }
docs: Determines if the given element should be shown in the editor.<p>
  
  @param key the element key name which should be displayed
  @param defaultValue the default value to use in case the property is not found, should be a boolean value as String
  @param displayOptions the display options for the current user
  
  @return true if the element should be shown, otherwise false