PsiMethod (@NotNull PsiMethod method) { PsiDocCommentOwner delegate = DocumentationDelegateProvider.findDocumentationDelegate(method); return delegate instanceof PsiMethod ? (PsiMethod)delegate : null; }