@Nullable @Override public String getLocationString() { String presentableParentQName = myDeclaration.getPresentableParentQName(); if (StringUtils.isEmpty(presentableParentQName)) { return null; } return "(" + presentableParentQName + ")"; }
@Nullable @Override public String getPresentableText() { if (myDeclaration instanceof DotNetTypeDeclaration) { return DotNetElementPresentationUtil.formatTypeWithGenericParameters( (DotNetTypeDeclaration) myDeclaration); } else if (myDeclaration instanceof DotNetMethodDeclaration) { if (myDeclaration instanceof CSharpMethodDeclaration && ((CSharpMethodDeclaration) myDeclaration).isDelegate()) { return DotNetElementPresentationUtil.formatTypeWithGenericParameters( (CSharpMethodDeclaration) myDeclaration); } return DotNetElementPresentationUtil.formatMethod( (DotNetLikeMethodDeclaration) myDeclaration, 0); } return myDeclaration.getName(); }