@Nullable public PsiType getReturnType() { final String returnTypeString = CfmlPsiUtil.getPureAttributeValue(this, "returntype"); return returnTypeString != null ? new CfmlComponentType(returnTypeString, getContainingFile(), getProject()) : null; }
@Override public Icon getIcon(int flags) { String access = CfmlPsiUtil.getPureAttributeValue(this, "access"); if (access == null) { return METHOD_ICON; } access = access.toLowerCase(); RowIcon baseIcon = new RowIcon(2); baseIcon.setIcon(METHOD_ICON, 0); if ("private".equals(access)) { baseIcon.setIcon(PRIVATE_ICON, 1); } else if ("package".equals(access)) { baseIcon.setIcon(PACKAGE_LOCAL_ICON, 1); } else if ("public".equals(access)) { baseIcon.setIcon(PUBLIC_ICON, 1); } else if ("remote".equals(access)) { baseIcon.setIcon(CFMLIcons.Remote_access, 1); } return baseIcon; }