refactor: use Class#isInstance(...) instead of instanceof operator
refactor: use Class#isInstance(...) instead of instanceof operator

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