boolean (@NotNull Project project, @NotNull Editor editor, @NotNull PsiFile file) { if (LanguageSlicing.getProvider(file) == null) { return false; } PsiElement expression = getHandler().getExpressionAtCaret(editor, file); return expression != null; }