Self (@NotNull final ElementPattern pattern) { return with(new PatternCondition<T>("ofType") { @Override public boolean accepts(@NotNull final T t, final ProcessingContext context) { return pattern.accepts(t.getType(), context); } }); }