boolean (@NotNull final PsiElement element, @NotNull final Editor editor, @NotNull PsiFile file, @NotNull DataContext context) { PsiElement targetMember = findTargetMember(element); if (targetMember == null) { final ChangeSignatureHandler targetHandler = getChangeSignatureHandler(element); if (targetHandler != null) { return true; } return false; } final ChangeSignatureHandler targetHandler = getChangeSignatureHandler(targetMember); if (targetHandler == null) return false; return true; }