protected static int toNameId(@NonNls String name) {
    if (name == null) return NULL_NAME_ID;
    if (name.isEmpty()) return EMPTY_NAME_ID;
    return FSRecords.getInstance().getNameId(name);
  }
protected static int toNameId(@NonNls String name)