public @NotNull Self inFile(final @NotNull ElementPattern<? extends PsiFile> filePattern) {
    return with(new PatternCondition<T>("inFile") {
      @Override
      public boolean accepts(final @NotNull T t, final ProcessingContext context) {
        return filePattern.accepts(t.getContainingFile(), context);
      }
    });
  }
public @NotNull Self inFile(final @NotNull ElementPattern<? extends PsiFile> filePattern)