interface InspectionManager { static InspectionManager getInstance() { return null; } } interface InspectionManagerEx extends InspectionManager { GlobalInspectionContext createContext(); } interface GlobalInspectionContext {} class Test { void m() { ((InspectionManagerEx)InspectionManager.getInstance()).createContext(); ((InspectionManagerEx)InspectionManager.getInstance()).createContext(); ((InspectionManagerEx)InspectionManager.getInstance()).createContext(); ((InspectionManagerEx)InspectionManager.getInstance()).createContext(); ((InspectionManagerEx)InspectionManager.getInstance()).createContext(); ((InspectionManagerEx)InspectionManager.getInstance()).createContext(); ((InspectionManagerEx)InspectionManager.getInstance()).createContext(); ((InspectionManagerEx)InspectionManager.getInstance()).createContext(); ((InspectionManagerEx)InspectionManager.getInstance()).createContext(); ((InspectionManagerEx)InspectionManager.getInstance()).createContext(); } }