public @NotNull TailType getTailType(){
    final TailType tailType = getAttribute(TAIL_TYPE_ATTR);
    return tailType != null ? tailType : TailTypes.unknownType();
  }
public @NotNull TailType getTailType()