public static String getActionTitle(final AFreeplaneAction action) { String title = (String) action.getValue(Action.NAME); if (title == null || title.isEmpty()) { title = TextUtils.getText(action.getTextKey()); } if (title == null || title.isEmpty()) { title = action.getTextKey(); } return TextUtils.removeTranslateComment(title); }