@staticmethod
def _line(line, comment='', termination=';', comment_char='//', new_lines=1):
    """
        To format a line

        Args:
            new_lines (int): Number of new lines to be added after the line
            termination (str): Termination character for the code line
            comment_char (str): Comment tag
            comment (str): Comment for the line if any
            line (str): The code line to be added
        """
    comment_line = ''
    main_line = line
    main_line = main_line + termination if main_line else main_line
    if comment:
        if main_line:
            comment_line = '    {}{}'.format(comment_char, comment)
        else:
            comment_line = '{}{}'.format(comment_char, comment)
    main_line += comment_line
    return main_line + '\n' * new_lines
