boolean (@NotNull PsiElement element) { if (!(element instanceof LightElement)) return false; if (element instanceof GrRenameableLightElement) return false; final Language language = element.getLanguage(); return GroovyLanguage.INSTANCE.equals(language); }