// @TODO: simplify code checks
if(!(psiElement.getContext() instanceof YAMLArray)) {
return;
}
YAMLArray yamlCallParameterArray = (YAMLArray) psiElement.getContext();
if(!(yamlCallParameterArray.getContext() instanceof YAMLArray)) {
return;
}
YAMLArray yamlCallArray = (YAMLArray) yamlCallParameterArray.getContext();
if(!(yamlCallArray.getContext() instanceof YAMLSequence)) {
return;
}
List<PsiElement> methodParameter = YamlHelper.getYamlArrayValues(yamlCallArray);
if(methodParameter.size() < 2) {
return;
}
String methodName = PsiElementUtils.getText(methodParameter.get(0));
YAMLSequence yamlSequence = (YAMLSequence) yamlCallArray.getContext();
if(!(yamlSequence.getContext() instanceof YAMLCompoundValue)) {
return;
}
YAMLCompoundValue yamlCompoundValue = (YAMLCompoundValue) yamlSequence.getContext();