boolean (@Nullable VirtualFile targetFile, @NotNull PyClass pyClass) { VirtualFile file = pyClass.getContainingFile().getVirtualFile(); return file instanceof BackedVirtualFile && Comparing.equal(((BackedVirtualFile)file).getOriginFile(), targetFile); }