MethodLocation (final PsiMethod psiElement, final PsiClass psiClass) { final Location<PsiClass> classLocation = PsiLocation.fromPsiElement(psiClass); return new MethodLocation(classLocation.getProject(), psiElement, classLocation); }