boolean (@NotNull Editor editor, @NotNull PsiFile file, @NotNull DataContext dataContext) { PsiMember member = findMember(editor, file); return member != null && getCannotRefactorMessage(member) == null; }