void (final Project project, final SmartPsiElementPointer classPointer, final SmartPsiElementPointer interfacePointer) { final PsiElement classElement = classPointer.getElement(); final PsiElement interfaceElement = interfacePointer.getElement(); if (classElement instanceof PsiClass && interfaceElement instanceof PsiClass) { askAndTurnRefsToSuper((PsiClass)classElement, (PsiClass)interfaceElement); } }