@Override
  public List<ContextFilter> createFilters(Map args) {
    List<ContextFilter> result = new ArrayList<>();

    if (namePattern != null && !namePattern.isEmpty()) {
      StringPattern match = StandardPatterns.string().matches(namePattern);
      result.add(new PlaceContextFilter(PlatformPatterns.psiElement().inside(
        StandardPatterns.or(PsiJavaPatterns.psiClass().withQualifiedName(match), PsiJavaPatterns.psiClass().withName(match)))));
    }

    return result;
  }
@Override
  public List<ContextFilter> createFilters(Map args)