boolean (@NotNull PsiElement context) { PsiFile file = context.getContainingFile(); if (file == null) return false; String name = file.getName(); return name.startsWith(GroovyPsiElementFactory.DUMMY_FILE_NAME); }