private boolean attributeRecordIsValid(int fileId) throws IOException {
    int attributeRecordId = recordsStorage.getAttributeRecordId(fileId);
    if (attributeRecordId == VFSAttributesStorage.NON_EXISTENT_ATTRIBUTE_RECORD_ID) {
      return true;
    }

    try {
      attributesStorage.checkAttributeRecordSanity(fileId, attributeRecordId);
      return true;
    }
    catch (Throwable t) {
      addProblem(ATTRIBUTES_STORAGE_CORRUPTED,
                 "file[#" + fileId + "].attributeRefId(=" + attributeRecordId + "): attributesStorage read failed", t
      );
      return false;
    }
  }
private boolean attributeRecordIsValid(int fileId)