refactor: use Optional.filter(...).map(...) instead of if (o instanceof ...)
refactor: use Optional.filter(...).map(...) instead of if (o instanceof ...)

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