boolean (@NotNull Editor editor, @NotNull PsiFile file, @NotNull DataContext dataContext) { final PsiElement[] elements = getElements(file.getProject(), editor, file); return elements != null && elements.length > 0; }