String (@NotNull PsiNamedElement element, boolean property) { final String name; if (element instanceof PsiMethod && property) { name = GroovyPropertyUtils.getPropertyName((PsiMethod)element); } else { name = element.getName(); } LOG.assertTrue(name != null, element); return name; }