boolean (Project project, Editor editor, PsiFile file) { final int offset = editor.getCaretModel().getOffset(); PsiElement element = findElement(file, offset); return CreateTestAction.isAvailableForElement(element); }