boolean (@NotNull Object component, @Nullable RelativePoint relativePoint) { if (!myClass.isInstance(component)) { return false; } //noinspection unchecked return shouldIntercept((T)component, relativePoint); }