@Nullable @Override public ClassDescriptor getClassResolvedFromSource(@NotNull FqName fqName) { return trace.get(FQNAME_TO_CLASS_DESCRIPTOR, fqName.toUnsafe()); }
@Test public void safeUnsafe() { FqName fqName = new FqName("com.yandex"); Assert.assertSame(fqName, fqName.toUnsafe().toSafe()); }
@Nullable public static FqNameUnsafe getUnsafeFQName(@NotNull JetNamedDeclaration namedDeclaration) { FqName fqName = getFQName(namedDeclaration); return fqName != null ? fqName.toUnsafe() : null; }