IntelliJ/Java: Duplicate code -- Refactored as ExtensionFinder.getClassFromIndex (#4079)
IntelliJ/Java: Duplicate code -- Refactored as ExtensionFinder.getClassFromIndex (#4079)

* IntelliJ/Java: Duplicate code -- Refactored as ExtensionFinder.getClassFromIndex

* Adding braces around throw new AssertionError

MarkEWaite/jenkins,patbos/jenkins,DanielWeber/jenkins,daniel-beck/jenkins,Vlatombe/jenkins,daniel-beck/jenkins,daniel-beck/jenkins,MarkEWaite/jenkins,damianszczepanik/jenkins,pjanouse/jenkins,oleg-nenashev/jenkins,viqueen/jenkins,patbos/jenkins,oleg-nenashev/jenkins,patbos/jenkins,daniel-beck/jenkins,godfath3r/jenkins,v1v/jenkins,Jochen-A-Fuerbacher/jenkins,DanielWeber/jenkins,daniel-beck/jenkins,jenkinsci/jenkins,Vlatombe/jenkins,MarkEWaite/jenkins,rsandell/jenkins,daniel-beck/jenkins,MarkEWaite/jenkins,DanielWeber/jenkins,viqueen/jenkins,viqueen/jenkins,oleg-nenashev/jenkins,ikedam/jenkins,rsandell/jenkins,stephenc/jenkins,daniel-beck/jenkins,viqueen/jenkins,jenkinsci/jenkins,damianszczepanik/jenkins,damianszczepanik/jenkins,stephenc/jenkins,viqueen/jenkins,jenkinsci/jenkins,recena/jenkins,DanielWeber/jenkins,godfath3r/jenkins,rsandell/jenkins,stephenc/jenkins,daniel-beck/jenkins,stephenc/jenkins,ikedam/jenkins,viqueen/jenkins,godfath3r/jenkins,ikedam/jenkins,recena/jenkins,v1v/jenkins,damianszczepanik/jenkins,godfath3r/jenkins,rsandell/jenkins,rsandell/jenkins,ikedam/jenkins,recena/jenkins,v1v/jenkins,rsandell/jenkins,recena/jenkins,Vlatombe/jenkins,v1v/jenkins,pjanouse/jenkins,godfath3r/jenkins,v1v/jenkins,Vlatombe/jenkins,Jochen-A-Fuerbacher/jenkins,jenkinsci/jenkins,rsandell/jenkins,godfath3r/jenkins,ikedam/jenkins,jenkinsci/jenkins,v1v/jenkins,Jochen-A-Fuerbacher/jenkins,patbos/jenkins,pjanouse/jenkins,recena/jenkins,stephenc/jenkins,DanielWeber/jenkins,Vlatombe/jenkins,DanielWeber/jenkins,ikedam/jenkins,ikedam/jenkins,jenkinsci/jenkins,rsandell/jenkins,jenkinsci/jenkins,damianszczepanik/jenkins,ikedam/jenkins,patbos/jenkins,Jochen-A-Fuerbacher/jenkins,oleg-nenashev/jenkins,damianszczepanik/jenkins,viqueen/jenkins,stephenc/jenkins,pjanouse/jenkins,pjanouse/jenkins,Vlatombe/jenkins,recena/jenkins,patbos/jenkins,pjanouse/jenkins,v1v/jenkins,MarkEWaite/jenkins,Jochen-A-Fuerbacher/jenkins,jenkinsci/jenkins,damianszczepanik/jenkins,patbos/jenkins,oleg-nenashev/jenkins,Jochen-A-Fuerbacher/jenkins,Vlatombe/jenkins,MarkEWaite/jenkins,Jochen-A-Fuerbacher/jenkins,oleg-nenashev/jenkins,oleg-nenashev/jenkins,MarkEWaite/jenkins,DanielWeber/jenkins,MarkEWaite/jenkins,damianszczepanik/jenkins,stephenc/jenkins,pjanouse/jenkins,godfath3r/jenkins,recena/jenkins