@Nullable
@Override
public ItemPresentation getPresentation(@NotNull final GrMethodCall item) {
if (!GrCucumberUtil.isStepDefinition(item)) return null;
return new ItemPresentation() {
@Nullable
@Override
public String getPresentableText() {
final String stepRef = GrCucumberUtil.getCucumberStepRef(item).getText();
final String pattern = GrCucumberUtil.getStepDefinitionPattern(item).getText();
return CucumberBundle.message("step.definition.0.1", stepRef, pattern);
}
@Nullable
@Override
public String getLocationString() {
final PsiFile file = item.getContainingFile();
final ItemPresentation presentation = ItemPresentationProviders.getItemPresentation(file);
LOG.assertTrue(presentation != null, file.getClass().getName());
return presentation.getPresentableText();
}
@Nullable
@Override
public Icon getIcon(boolean unused) {