@NotNull
  private static String getFeaturesFileName(@NotNull PsiFile file, @NotNull PsiElement element, @NotNull Editor editor) {
    Document document = PsiDocumentManager.getInstance(file.getProject()).getDocument(file);
    String fileName = file.getName();
    return "features" +
           fileName.substring(0, fileName.lastIndexOf('.')) +
           (document != null ? document.getLineNumber(editor.getCaretModel().getOffset()) : "") +
           "-" + element.getText() + "-" +
           ".txt";
  }
@NotNull
  private static String getFeaturesFileName(@NotNull PsiFile file, @NotNull PsiElement element, @NotNull Editor editor)