PsiFile psiFile = PsiElementUtils.virtualFileToPsiFile(project, translationVirtualFile);
if(psiFile instanceof YAMLFile) {
PsiElement yamlDocu = PsiTreeUtil.findChildOfType(psiFile, YAMLDocument.class);
if(yamlDocu != null) {
YAMLKeyValue goToPsi = YamlKeyFinder.findKeyValueElement(yamlDocu, translationKey);
if(goToPsi != null) {
// multiline are line values are not resolve properly on psiElements use key as fallback target
PsiElement valuePsiElement = goToPsi.getValue();
psiFoundElements.add(valuePsiElement != null ? valuePsiElement : goToPsi);
virtualFilesFound.add(translationVirtualFile);
}
}