@Override public <T> T as(ClassConditionKey<T> conditionKey) { final T t = super.as(conditionKey); return t == null ? myDelegate.as(conditionKey) : t; }
/** * use {@link #as(ClassConditionKey)} instead */ @Deprecated @Nullable public final <T> T as(Class<T> aClass) { return as(ClassConditionKey.create(aClass)); }
@SuppressWarnings("unchecked") @Nullable public <T> T as(ClassConditionKey<T> conditionKey) { return conditionKey.isInstance(this) ? (T) this : null; }
/** * use {@link #as(com.intellij.openapi.util.ClassConditionKey)} instead */ @Deprecated @Nullable public final <T> T as(Class<T> aClass) { return as(ClassConditionKey.create(aClass)); }
@Nullable public <T> T as(ClassConditionKey<T> conditionKey) { return conditionKey.isInstance(this) ? (T) this : null; }