refactor: use Optional instead of if (Objects.nonNull(o))
refactor: use Optional instead of if (Objects.nonNull(o))

aterai/java-swing-tips,aterai/java-swing-tips,aterai/java-swing-tips,aterai/java-swing-tips