boolean (LogFilter filter) { final Boolean isSelected = myRegisteredLogFilters.get(filter); if (isSelected != null) { return isSelected.booleanValue(); } if (filter instanceof IndependentLogFilter) { return ((IndependentLogFilter)filter).isSelected(); } return false; }