In the full version of IntelliJ with 3 examples that you posted above, the icon you are linking to has guidance text:
Implements a method in an interface through a subclass of Child
In other words, IntelliJ is smart enough to see the connection between an interface and an inheritance structure.
Why is he doing this? Well, if you remove the class definition fun1 from Child , then fun1 , of course, is visible in the Child class through inheritance from Parent , thereby fulfilling the requirement for implementing Interface .
source share