boolean (@NotNull Project project, @NotNull PsiFile file, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { return startElement instanceof PsiMethod && ((PsiMethod)startElement).getContainingClass() != null; }