EA-75914 - CCE: FindSuperElementsHelper$.process

This commit is contained in:
Alexey Kudravtsev
2015-12-01 12:55:41 +03:00
parent 1cbd577031
commit e3f7885bf7
@@ -96,7 +96,9 @@ public class FindSuperElementsHelper {
PsiClass anInterface = resolved.getElement();
if (anInterface == null || !checkedInterfaces.add(PsiAnchor.create(anInterface))) continue;
for (PsiMethod superMethod : anInterface.findMethodsByName(method.getName(), true)) {
superMethod = (PsiMethod)superMethod.getNavigationElement();
PsiElement navigationElement = superMethod.getNavigationElement();
if (!(navigationElement instanceof PsiMethod)) continue; // Kotlin
superMethod = (PsiMethod)navigationElement;
ProgressManager.checkCanceled();
PsiClass superInterface = superMethod.getContainingClass();
if (superInterface == null) {