src/main/java/seedu/address/logic/parser/parserEdit/EditStudentCommandParser.java
private Optional<Set<Tag>> parseTagsForEdit(Collection<String> tags) throws ParseException {
        assert tags != null;

        if (tags.isEmpty()) {
            return Optional.empty();
        }
        Collection<String> tagSet =
                tags.size() == 1 && tags.contains("") ? Collections.emptySet() : tags;
        return Optional.of(ParserUtil.parseTags(tagSet));
    }
/**
     * Parses {@code Collection<String> tags} into a {@code Set<Tag>} if {@code tags} is non-empty. If
     * {@code tags} contain only one element which is an empty string, it will be parsed into a {@code
     * Set<Tag>} containing zero tags.
     */
Parses  Collection tags into a  Set if  tags is non-empty. If
tags contain only one element which is an empty string, it will be parsed into a {@code
Set} containing zero tags.
Parses Collection tags into a Set if tags is non - empty . If tags contain only one element which is an empty string it will be parsed into a { @code Set } containing zero tags .
private Optional<Set<Tag>> parseTagsForEdit(Collection<String> tags) throws ParseException {
        assert tags != null;
        if (tags.isEmpty()) {
            return Optional.empty();
        }
        Collection<String> tagSet =
                tags.size() == 1 && tags.contains("") ? Collections.emptySet() : tags;
        return Optional.of(ParserUtil.parseTags(tagSet));
    }
private Optional < Set < Tag > > parseTagsForEdit ( Collection < String > tags ) throws ParseException { assert tags != null ; if ( tags . isEmpty ( ) ) { return Optional . empty ( ) ; } Collection < String > tagSet = tags . size ( ) == 1 && tags . contains ( "" ) ? Collections . emptySet ( ) : tags ; return Optional . of ( ParserUtil . parseTags ( tagSet ) ) ; }
Parses {@code Collection<String> tags} into a {@code Set<Tag>} if {@code tags} is non-empty.
Parses { @code Collection<String > tags } into a { @code Set<Tag > } if { @code tags } is non - empty .