UsageInfo[] (ChangeInfo info) { if (info instanceof PyChangeInfo) { final PyFunction targetFunction = ((PyChangeInfo)info).getMethod(); final List<UsageInfo> usages = PyPsiIndexUtil.findUsages(targetFunction, true); if (!PyUtil.isInitOrNewMethod(targetFunction)) { final Query<PyFunction> search = PyOverridingMethodsSearch.search(targetFunction, true); for (PyFunction override : search.findAll()) { usages.add(new UsageInfo(override)); usages.addAll(PyPsiIndexUtil.findUsages(override, true)); } } return usages.toArray(UsageInfo.EMPTY_ARRAY); } return UsageInfo.EMPTY_ARRAY; }