PsiMethod (PsiElement element) { if(element instanceof PsiReferenceExpression && "super".equals(element.getText())) { PsiElement parent = element.getParent(); if(parent instanceof PsiMethodCallExpression) { parent = parent.getParent(); if(parent instanceof PsiExpressionStatement) { parent = parent.getParent(); if(parent instanceof PsiCodeBlock) { parent = parent.getParent(); if(parent instanceof PsiMethod && ((PsiMethod) parent).isConstructor()) { return (PsiMethod) parent; } } } } } return null; }