ItemPresentation () { return new ItemPresentation() { @Override public @NotNull String getPresentableText() { return YAMLBundle.message("element.presentation.document.type"); } @Override public @NotNull String getLocationString() { return getContainingFile().getName(); } @Override public @NotNull Icon getIcon(boolean unused) { return AllIcons.Json.Object; } }; }