@Nullable
public String getGlue(@NotNull GherkinStep step) {
for (PsiReference ref : step.getReferences()) {
PsiElement refElement = ref.resolve();
if (refElement != null && refElement instanceof GrMethodCall) {
GroovyFile groovyFile = (GroovyFile)refElement.getContainingFile();
VirtualFile vfile = groovyFile.getVirtualFile();
if (vfile != null) {
VirtualFile parentDir = vfile.getParent();
return PathUtil.getLocalPath(parentDir);
}
}