refactor: use Optional.ifPresent(...) instead of if (...)
refactor: use Optional.ifPresent(...) instead of if (...)

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