PsiElement () { PsiClass containingClass = getContainingClass(); if (containingClass != null) { PsiElement original = containingClass.getOriginalElement(); if (original != containingClass) { PsiMethod originalMethod = ((PsiClass)original).findMethodBySignature(this, false); if (originalMethod != null) { return originalMethod; } } } return this; }