void (@NotNull final Project project, @NotNull final Editor editor, @NotNull final PsiFile file) { PsiElement expression = getExpressionAtCaret(editor, file); if (expression == null) { HintManager.getInstance().showErrorHint(editor, LangBundle.message("hint.text.cannot.find.what.to.analyze")); return; } SliceManager sliceManager = SliceManager.getInstance(project); sliceManager.slice(expression,myDataFlowToThis, this); }